|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
edu.emory.mathcs.util.io.BufferedDataOutputStream
Buffered data output stream that supports serialization of arrays of primitive types.
Constructor Summary | |
BufferedDataOutputStream(java.io.OutputStream out)
Deprecated. Constructs buffered data output stream. |
|
BufferedDataOutputStream(java.io.OutputStream out,
int buffer_size)
Deprecated. Constructs buffered data output stream. |
Method Summary | |
void |
close()
Deprecated. Closes the underlying output stream. |
void |
flush()
Deprecated. Flushes not written (possibly buffered) data into the stream. |
protected void |
flushBuffer()
Deprecated. Empties the buffer into the underlying stream. |
protected int |
getUTFStringLength(java.lang.String str)
Deprecated. |
void |
write(byte[] b)
Deprecated. Writes an array of bytes into the output stream. |
void |
write(byte[] b,
int off,
int lng)
Deprecated. Writes lng of bytes into the output stream. |
void |
write(int b)
Deprecated. Writes a byte into the output stream. |
void |
writeBoolean(boolean b)
Deprecated. Writes a boolean into the output stream. |
void |
writeBooleans(boolean[] booleans,
int off,
int lng)
Deprecated. Writes exactly lng of booleans to the stream starting from booleans[off]. |
void |
writeByte(int b)
Deprecated. Writes a byte into the output stream. |
void |
writeBytes(byte[] bytes,
int off,
int lng)
Deprecated. Writes exactly lng of bytes to the stream starting from bytes[off]. |
void |
writeBytes(java.lang.String str)
Deprecated. Writes a string as an array of bytes into the output stream. |
void |
writeChar(int c)
Deprecated. Writes a char into the output stream. |
void |
writeChars(char[] chars,
int off,
int lng)
Deprecated. Writes exactly lng of chars to the stream starting from chars[off]. |
void |
writeChars(java.lang.String str)
Deprecated. Writes a string as an array of chars into the output stream. |
void |
writeDouble(double d)
Deprecated. Writes a double into the output stream. |
void |
writeDoubles(double[] doubles,
int off,
int lng)
Deprecated. Writes exactly lng of doubles to the stream starting from doubles[off]. |
void |
writeFloat(float f)
Deprecated. Writes a float into the output stream. |
void |
writeFloats(float[] floats,
int off,
int lng)
Deprecated. Writes exactly lng of floats to the stream starting from floats[off]. |
void |
writeInt(int i)
Deprecated. Writes an integer into the output stream. |
void |
writeInts(int[] ints,
int off,
int lng)
Deprecated. Writes exactly lng of integers to the stream starting from ints[off]. |
void |
writeLong(long l)
Deprecated. Writes a long into the output stream. |
void |
writeLongs(long[] longs,
int off,
int lng)
Deprecated. Writes exactly lng of longs to the stream starting from longs[off]. |
void |
writeShort(int s)
Deprecated. Writes a short into the output stream. |
void |
writeShorts(short[] shorts,
int off,
int lng)
Deprecated. Writes exactly lng of shorts to the stream starting from shorts[off]. |
void |
writeUTF(java.lang.String str)
Deprecated. Writes a string in the UTF into the output stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BufferedDataOutputStream(java.io.OutputStream out)
out
- the underlying output stream.public BufferedDataOutputStream(java.io.OutputStream out, int buffer_size)
out
- the underlying output stream.buffer_size
- the size of the data bufferMethod Detail |
public void write(byte[] b) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void write(byte[] b, int off, int lng) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void write(int b) throws java.io.IOException
write
in interface java.io.DataOutput
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
protected void flushBuffer() throws java.io.IOException
java.io.IOException
public void writeByte(int b) throws java.io.IOException
writeByte
in interface java.io.DataOutput
java.io.IOException
public void writeBoolean(boolean b) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
java.io.IOException
public void writeShort(int s) throws java.io.IOException
writeShort
in interface java.io.DataOutput
java.io.IOException
public void writeChar(int c) throws java.io.IOException
writeChar
in interface java.io.DataOutput
java.io.IOException
public void writeInt(int i) throws java.io.IOException
writeInt
in interface java.io.DataOutput
java.io.IOException
public void writeLong(long l) throws java.io.IOException
writeLong
in interface java.io.DataOutput
java.io.IOException
public void writeFloat(float f) throws java.io.IOException
writeFloat
in interface java.io.DataOutput
java.io.IOException
public void writeDouble(double d) throws java.io.IOException
writeDouble
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(byte[] bytes, int off, int lng) throws java.io.IOException
If bytes is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than bytes length then IndexOutOfBoundsException is thrown.
If lng is 0 or bytes length is 0 then no bytes are written.
bytes
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeBooleans(boolean[] booleans, int off, int lng) throws java.io.IOException
If booleans is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than booleans length then IndexOutOfBoundsException is thrown.
If lng is 0 or booleans length is 0 then no booleans are written.
booleans
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeChars(char[] chars, int off, int lng) throws java.io.IOException
If chars is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than chars length then IndexOutOfBoundsException is thrown.
If lng is 0 or chars length is 0 then no chars are written.
chars
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeShorts(short[] shorts, int off, int lng) throws java.io.IOException
If shorts is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than shorts length then IndexOutOfBoundsException is thrown.
If lng is 0 or shorts length is 0 then no shorts are written.
shorts
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeInts(int[] ints, int off, int lng) throws java.io.IOException
If ints is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than ints length then IndexOutOfBoundsException is thrown.
If lng is 0 or ints length is 0 then no integers are written.
ints
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeFloats(float[] floats, int off, int lng) throws java.io.IOException
If floats is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than floats length then IndexOutOfBoundsException is thrown.
If lng is 0 or floats length is 0 then no floats are written.
floats
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeLongs(long[] longs, int off, int lng) throws java.io.IOException
If longs is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than longs length then IndexOutOfBoundsException is thrown.
If lng is 0 or longs length is 0 then no longs are written.
longs
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeDoubles(double[] doubles, int off, int lng) throws java.io.IOException
If doubles is null NullPointerException is thrown.
If off is negative, or lng is negative, or off+lng is grater than doubles length then IndexOutOfBoundsException is thrown.
If lng is 0 or doubles length is 0 then no doubles are written.
doubles
- the source arrayoff
- starting index in arraylng
- number of items to write
java.io.IOException
- when I/O error occurs.public void writeChars(java.lang.String str) throws java.io.IOException
writeChars
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(java.lang.String str) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
java.io.IOException
public void writeUTF(java.lang.String str) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
java.io.IOException
protected int getUTFStringLength(java.lang.String str) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |