|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.hpsf.TypeWriter
public class TypeWriter
Class for writing little-endian data and more.
| Constructor Summary | |
|---|---|
TypeWriter()
|
|
| Method Summary | |
|---|---|
static int |
writeToStream(java.io.OutputStream out,
ClassID n)
Writes a 16-byte ClassID to an output stream. |
static int |
writeToStream(java.io.OutputStream out,
double n)
Writes a double value value to an output stream. |
static int |
writeToStream(java.io.OutputStream out,
int n)
Writes a four-byte value to an output stream. |
static int |
writeToStream(java.io.OutputStream out,
long n)
Writes a eight-byte value to an output stream. |
static void |
writeToStream(java.io.OutputStream out,
Property[] properties,
int codepage)
Writes an array of Property instances to an output stream
according to the Horrible Property Stream Format. |
static int |
writeToStream(java.io.OutputStream out,
short n)
Writes a two-byte value (short) to an output stream. |
static int |
writeUIntToStream(java.io.OutputStream out,
long n)
Writes an unsigned four-byte value to an output stream. |
static void |
writeUShortToStream(java.io.OutputStream out,
int n)
Writes an unsigned two-byte value to an output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeWriter()
| Method Detail |
|---|
public static int writeToStream(java.io.OutputStream out,
short n)
throws java.io.IOException
Writes a two-byte value (short) to an output stream.
out - The stream to write to.n - The value to write.
java.io.IOException - if an I/O error occurs
public static int writeToStream(java.io.OutputStream out,
int n)
throws java.io.IOException
Writes a four-byte value to an output stream.
out - The stream to write to.n - The value to write.
java.io.IOException - if an I/O error occurs
public static int writeToStream(java.io.OutputStream out,
long n)
throws java.io.IOException
Writes a eight-byte value to an output stream.
out - The stream to write to.n - The value to write.
java.io.IOException - if an I/O error occurs
public static void writeUShortToStream(java.io.OutputStream out,
int n)
throws java.io.IOException
Writes an unsigned two-byte value to an output stream.
out - The stream to write ton - The value to write
java.io.IOException - if an I/O error occurs
public static int writeUIntToStream(java.io.OutputStream out,
long n)
throws java.io.IOException
Writes an unsigned four-byte value to an output stream.
out - The stream to write to.n - The value to write.
java.io.IOException - if an I/O error occurs
public static int writeToStream(java.io.OutputStream out,
ClassID n)
throws java.io.IOException
Writes a 16-byte ClassID to an output stream.
out - The stream to write ton - The value to write
java.io.IOException - if an I/O error occurs
public static void writeToStream(java.io.OutputStream out,
Property[] properties,
int codepage)
throws java.io.IOException,
UnsupportedVariantTypeException
Writes an array of Property instances to an output stream
according to the Horrible Property Stream Format.
out - The stream to write toproperties - The array to write to the streamcodepage - The codepage number to use for writing strings
java.io.IOException - if an I/O error occurs
UnsupportedVariantTypeException - if HPSF does not support some
variant type.
public static int writeToStream(java.io.OutputStream out,
double n)
throws java.io.IOException
Writes a double value value to an output stream.
out - The stream to write to.n - The value to write.
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||