Package loci.poi.ddf
Class EscherDump
java.lang.Object
loci.poi.ddf.EscherDump
Used to dump the contents of escher records to a PrintStream.
- Author:
- Glen Stampoultzis (glens at apache.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(byte[] data, int offset, int size, PrintStream out) Decodes the escher stream from a byte array and dumps the results to a print stream.voiddump(int recordSize, byte[] data, PrintStream out) voiddumpOld(long maxLength, InputStream in, PrintStream out) This version of dump is a translation from the open office escher dump routine.static voidA simple test stub.
-
Constructor Details
-
EscherDump
public EscherDump()
-
-
Method Details
-
dump
public void dump(byte[] data, int offset, int size, PrintStream out) throws IOException, LittleEndian.BufferUnderrunException Decodes the escher stream from a byte array and dumps the results to a print stream.- Parameters:
data- The data array containing the escher records.offset- The starting offset within the data array.size- The number of bytes to read.out- The output stream to write the results to.- Throws:
IOExceptionLittleEndian.BufferUnderrunException
-
dumpOld
public void dumpOld(long maxLength, InputStream in, PrintStream out) throws IOException, LittleEndian.BufferUnderrunException This version of dump is a translation from the open office escher dump routine.- Parameters:
maxLength- The number of bytes to readin- An input stream to read from.out- An output stream to write to.- Throws:
IOExceptionLittleEndian.BufferUnderrunException
-
main
A simple test stub.- Throws:
IOException
-
dump
public void dump(int recordSize, byte[] data, PrintStream out) throws IOException, LittleEndian.BufferUnderrunException
-