|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jfimagine.utils.io.JFBinaryWriter
JFBinaryWriter is a binary writer class to handle JFDraw files writing.
| Constructor Summary | |
JFBinaryWriter(java.io.DataOutputStream dataOutput)
Constructor of JFBinaryWriter |
|
| Method Summary | |
void |
write(byte[] b)
Writes to the output stream all the bytes in array b. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from array
b, in order, to
the output stream. |
void |
writeBoolean(boolean v)
Writes a boolean value to this output stream.
|
void |
writeByte(int v)
Writes to the output stream the eight low- order bits of the argument v.
|
void |
writeBytes(java.lang.String s)
Writes a string to the output stream. |
void |
writeChar(int v)
Writes a char value, wich
is comprised of two bytes, to the
output stream.
|
void |
writeChars(java.lang.String s)
Writes every character in the string s,
to the output stream, in order,
two bytes per character. |
void |
writeDouble(double v)
Writes a double value,
which is comprised of eight bytes, to the output stream.
|
void |
writeFloat(float v)
Writes a float value,
which is comprised of four bytes, to the output stream.
|
void |
writeInt(int v)
Writes an int value, which is
comprised of four bytes, to the output stream.
|
void |
writeLong(long v)
Writes a long value, which is
comprised of eight bytes, to the output stream.
|
void |
writeShort(int v)
Writes two bytes to the output stream to represent the value of the argument. |
void |
writeUTF(java.lang.String str)
Writes two bytes of length information to the output stream, followed by the Java modified UTF representation of every character in the string s.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JFBinaryWriter(java.io.DataOutputStream dataOutput)
| Method Detail |
public void write(byte[] b)
throws java.io.IOException
b.
write in interface JFWriterb - the data.
java.io.IOException - if an I/O error occurs.
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
len bytes from array
b, in order, to
the output stream.
write in interface JFWriterb - the data.off - the start offset in the data.len - the number of bytes to write.
java.io.IOException - if an I/O error occurs.
public void writeBoolean(boolean v)
throws java.io.IOException
boolean value to this output stream.
The byte written by this method may
be read by the readBoolean
method in JFReader.
writeBoolean in interface JFWriterv - the boolean to be written.
java.io.IOException - if an I/O error occurs.
public void writeByte(int v)
throws java.io.IOException
v.
The 24 high-order bits of v
are ignored.
writeByte in interface JFWriterv - the byte value to be written.
java.io.IOException - if an I/O error occurs.
public void writeShort(int v)
throws java.io.IOException
readShort method in JFReader.
writeShort in interface JFWriterv - the short value to be written.
java.io.IOException - if an I/O error occurs.
public void writeChar(int v)
throws java.io.IOException
char value, wich
is comprised of two bytes, to the
output stream.
The bytes written by this method may be
read by the readChar method in JFReader.
writeChar in interface JFWriterv - the char value to be written.
java.io.IOException - if an I/O error occurs.
public void writeInt(int v)
throws java.io.IOException
int value, which is
comprised of four bytes, to the output stream.
The bytes written by this method may be read
by the readInt method in JFReader.
writeInt in interface JFWriterv - the int value to be written.
java.io.IOException - if an I/O error occurs.
public void writeLong(long v)
throws java.io.IOException
long value, which is
comprised of eight bytes, to the output stream.
The bytes written by this method may be
read by the readLong method in JFReader.
writeLong in interface JFWriterv - the long value to be written.
java.io.IOException - if an I/O error occurs.
public void writeFloat(float v)
throws java.io.IOException
float value,
which is comprised of four bytes, to the output stream.
The bytes written by this method
may be read by the readFloat
method in JFReader.
writeFloat in interface JFWriterv - the float value to be written.
java.io.IOException - if an I/O error occurs.
public void writeDouble(double v)
throws java.io.IOException
double value,
which is comprised of eight bytes, to the output stream.
The bytes written by this method
may be read by the readDouble
method in JFReader.
writeDouble in interface JFWriterv - the double value to be written.
java.io.IOException - if an I/O error occurs.
public void writeBytes(java.lang.String s)
throws java.io.IOException
s, taken in order, one byte
is written to the output stream.
writeBytes in interface JFWriters - the string of bytes to be written.
java.io.IOException - if an I/O error occurs.
public void writeChars(java.lang.String s)
throws java.io.IOException
s,
to the output stream, in order,
two bytes per character.
writeChars in interface JFWriters - the string value to be written.
java.io.IOException - if an I/O error occurs.
public void writeUTF(java.lang.String str)
throws java.io.IOException
s.
The bytes written by this method may be read
by the readUTF method in JFReader.
writeUTF in interface JFWriterstr - the string value to be written.
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 | ||||||||||