|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
JFWriter is a writer interface to handle JFDraw files writing.
| 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.
|
| Method Detail |
public void write(byte[] b)
throws java.io.IOException
b.
b - 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.
b - 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.
v - 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.
v - 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.
v - 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.
v - 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.
v - 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.
v - 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.
v - 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.
v - 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.
s - 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.
s - 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.
str - 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 | ||||||||||