@Override @NotImplemented public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"drawArc not supported"); }
public void serialize(LittleEndianOutput out) { out.writeInt(fSD); out.writeInt(passwordVerifier); StringUtil.writeUnicodeString(out, title); out.write(securityDescriptor); }
public void read( LittleEndianInput lei ) { int size = lei.readInt(); _value = IOUtils.safelyAllocate(size, MAX_RECORD_LENGTH); if ( size > 0 ) { lei.readFully(_value); } } }
public byte[] toByteArray() { byte[] result = new byte[LittleEndianConsts.INT_SIZE*2+_value.length]; LittleEndianByteArrayOutputStream bos = new LittleEndianByteArrayOutputStream(result,0); try { bos.writeInt(LittleEndianConsts.INT_SIZE + _value.length); bos.writeInt(_format); bos.write(_value); return result; } finally { IOUtils.closeQuietly(bos); } }
/** Create a StringPtg from a stream */ public StringPtg(LittleEndianInput in) { int nChars = in.readUByte(); // Note - nChars is 8-bit _is16bitUnicode = (in.readByte() & 0x01) != 0; if (_is16bitUnicode) { field_3_string = StringUtil.readUnicodeLE(in, nChars); } else { field_3_string = StringUtil.readCompressedUnicode(in, nChars); } }
public LbsDropData(LittleEndianInput in){ _wStyle = in.readUShort(); _cLine = in.readUShort(); _dxMin = in.readUShort(); _str = StringUtil.readUnicodeString(in); if(StringUtil.getEncodedSize(_str) % 2 != 0){ _unused = in.readByte(); } }
public FtCblsSubRecord(LittleEndianInput in, int size) { if (size != ENCODED_SIZE) { throw new RecordFormatException("Unexpected size (" + size + ")"); } //just grab the raw data byte[] buf = IOUtils.safelyAllocate(size, ENCODED_SIZE); in.readFully(buf); reserved = buf; }
public FtCfSubRecord(LittleEndianInput in, int size) { if (size != length) { throw new RecordFormatException("Unexpected size (" + size + ")"); } flags = in.readShort(); }
@Override protected void serialize(LittleEndianOutput out) { out.writeShort(isxvdData); out.writeShort(iiftab); out.writeShort(df); out.writeShort(isxvd); out.writeShort(isxvi); out.writeShort(ifmt); StringUtil.writeUnicodeString(out, name); }
public UnknownSubRecord(LittleEndianInput in, int sid, int size) { _sid = sid; byte[] buf = IOUtils.safelyAllocate(size, MAX_RECORD_LENGTH); in.readFully(buf); _data = buf; } @Override
@Override @NotImplemented public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"drawImage not supported"); return true; }
public FtPioGrbitSubRecord(LittleEndianInput in, int size) { if (size != length) { throw new RecordFormatException("Unexpected size (" + size + ")"); } flags = in.readShort(); }
@Override protected void serialize(LittleEndianOutput out) { out.writeShort(_sxaxis); out.writeShort(_cSub); out.writeShort(_grbitSub); out.writeShort(_cItm); if (_name != null) { StringUtil.writeUnicodeString(out, _name); } else { out.writeShort(STRING_NOT_PRESENT_LEN); } }
@Override @NotImplemented public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"drawRoundRect not supported"); }
@Override @NotImplemented public void setXORMode(Color color) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"setXORMode not supported"); } @Override
@Override @NotImplemented public void clipRect(int x, int y, int width, int height) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"clipRect not supported"); }
@Override @NotImplemented public void setPaintMode() { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"setPaintMode not supported"); }
@Override @NotImplemented public void drawPolyline(int xPoints[], int yPoints[], int nPoints) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"drawPolyline not supported"); }
@Override @NotImplemented public void translate(int x, int y) { if (logger.check( POILogger.WARN )) logger.log(POILogger.WARN,"translate not supported"); }