/**
* Any remaining data in this record.
+ *
+ * @return the remaining bytes
*/
public byte[] getRemainingData() {
return _remainingData;
/**
* Any remaining data in this record.
+ *
+ * @param remainingData the remaining bytes
*/
public void setRemainingData(byte[] remainingData) {
if (remainingData == null) {
/**
* Do any of our (top level) children have the given recordId?
*
+ * @param recordId the recordId of the child
+ *
* @return true, if any child has the given recordId
*/
public boolean hasChildOfType(short recordId) {
/**
* Returns all of our children which are also
- * EscherContainers (may be 0, 1, or vary rarely
- * 2 or 3)
+ * EscherContainers (may be 0, 1, or vary rarely 2 or 3)
+ *
+ * @return EscherContainer children
*/
public List<EscherContainerRecord> getChildContainers() {
List<EscherContainerRecord> containers = new ArrayList<EscherContainerRecord>();
/**
* Used to dump the contents of escher records to a PrintStream.
- *
- * @author Glen Stampoultzis (glens at apache.org)
*/
public final class EscherDump {
* @param maxLength The number of bytes to read
* @param in An input stream to read from.
* @param out An output stream to write to.
+ *
+ * @throws IOException
+ * @throws LittleEndian.BufferUnderrunException
*/
public void dumpOld(long maxLength, InputStream in, PrintStream out)
throws IOException, LittleEndian.BufferUnderrunException {
/**
* A simple test stub.
+ *
+ * @param args the args
*/
public static void main( String[] args ) {
main(args, System.out);
* This is the abstract base class for all escher properties.
*
* @see EscherOptRecord
- *
- * @author Glen Stampoultzis (glens at apache.org)
*/
public abstract class EscherProperty {
private short _id;
/**
* The id is distinct from the actual property number. The id includes the property number the blip id
* flag and an indicator whether the property is complex or not.
+ *
+ * @param id the combined id
*/
public EscherProperty(short id) {
_id = id;
/**
* Constructs a new escher property. The three parameters are combined to form a property
* id.
+ *
+ * @param propertyNumber the property number
+ * @param isComplex true, if this is a complex property
+ * @param isBlipId true, if this property is a blip id
*/
public EscherProperty(short propertyNumber, boolean isComplex, boolean isBlipId) {
_id = (short)(propertyNumber +
/**
* Most properties are just 6 bytes in length. Override this if we're
* dealing with complex properties.
+ *
+ * @return size of this property (in bytes)
*/
public int getPropertySize() {
return 6;
/**
* Escher properties consist of a simple fixed length part and a complex variable length part.
* The fixed length part is serialized first.
+ *
+ * @param data the buffer to write to
+ * @param pos the starting position
+ *
+ * @return the length of the part
*/
abstract public int serializeSimplePart( byte[] data, int pos );
+
/**
* Escher properties consist of a simple fixed length part and a complex variable length part.
* The fixed length part is serialized first.
+ *
+ * @param data the buffer to write to
+ * @param pos the starting position
+ *
+ * @return the length of the part
*/
abstract public int serializeComplexPart( byte[] data, int pos );
}