| java.lang.Object org.apache.poi.hslf.record.Record
All known Subclasses: org.apache.poi.hslf.record.RecordContainer, org.apache.poi.hslf.record.RecordAtom,
Record | abstract public class Record (Code) | | This abstract class represents a record in the PowerPoint document.
Record classes should extend with RecordContainer or RecordAtom, which
extend this in turn.
author: Nick Burch |
buildRecordAtOffset | public static Record buildRecordAtOffset(byte[] b, int offset)(Code) | | Build and return the Record at the given offset.
Note - does less error checking and handling than findChildRecords
Parameters: b - The byte array to build from Parameters: offset - The offset to build at |
createRecordForType | public static Record createRecordForType(long type, byte[] b, int start, int len)(Code) | | For a given type (little endian bytes 3 and 4 in record header),
byte array, start position and length:
will return a Record object that will handle that record
Remember that while PPT stores the record lengths as 8 bytes short
(not including the size of the header), this code assumes you're
passing in corrected lengths
|
findChildRecords | public static Record[] findChildRecords(byte[] b, int start, int len)(Code) | | Default method for finding child records of a container record
|
getChildRecords | abstract public Record[] getChildRecords()(Code) | | Fetch all the child records of this record
If this record is an atom, will return null
If this record is a non-atom, but has no children, will return
an empty array
|
getRecordType | abstract public long getRecordType()(Code) | | Returns the type (held as a little endian in bytes 3 and 4)
that this class handles
|
isAnAtom | abstract public boolean isAnAtom()(Code) | | Is this record type an Atom record (only has data),
or is it a non-Atom record (has other records)?
|
writeLittleEndian | public static void writeLittleEndian(int i, OutputStream o) throws IOException(Code) | | When writing out, write out a signed int (32bit) in Little Endian format
|
writeLittleEndian | public static void writeLittleEndian(short s, OutputStream o) throws IOException(Code) | | When writing out, write out a signed short (16bit) in Little Endian format
|
writeOut | abstract public void writeOut(OutputStream o) throws IOException(Code) | | Have the contents printer out into an OutputStream, used when
writing a file back out to disk
(Normally, atom classes will keep their bytes around, but
non atom classes will just request the bytes from their
children, then chuck on their header and return)
|
|
|