|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.io.OutputStream
com.tangosol.io.pof.PofOutputStream
public class PofOutputStream
An ObjectOutput implementation suitable for writing Externalizable and ExternalizableLite objects to a POF stream, although without support for schema evolution and other advanced POF features.
| Constructor Summary | |
|---|---|
PofOutputStream(PofWriter out)Construct a PofOutputStream that will write its information to an underlying PofWriter. |
|
| Method Summary | |
|---|---|
void |
close()Closes this OutputStream and releases any associated system resources. |
void |
flush()Flushes this OutputStream and forces any buffered output bytes to be written. |
PofWriter |
getPofWriter()Obtain the underlying PofWriter. |
int |
nextIndex()Determine the next property index to write to. |
void |
write(byte[] ab)Writes all the bytes in the array ab. |
void |
write(byte[] ab, int of, int cb)Writes cb bytes starting at offset of from the array ab. |
void |
write(int b)Writes the eight low-order bits of the argument b. |
void |
writeBoolean(boolean f)Writes the boolean value f. |
void |
writeByte(int b)Writes the eight low-order bits of the argument b. |
void |
writeBytes(java.lang.String s)Writes the String s, but only the low-order byte from each character of the String is written. |
void |
writeChar(int ch)Writes a char value, comprised of the 16 low-order bits of the argument ch; the 16 high-order bits of ch are ignored. |
void |
writeChars(java.lang.String s)Writes the String s as a sequence of characters. |
void |
writeDouble(double dfl)Writes a double value. |
void |
writeFloat(float fl)Writes a float value. |
void |
writeInt(int n)Writes an int value. |
void |
writeLong(long l)Writes a long value. |
void |
writeObject(java.lang.Object o)Writes the Object o so that the corresponding ObjectInput.readObject() method can reconstitute an Object from the written data. |
void |
writeShort(int n)Writes a short value, comprised of the 16 low-order bits of the argument n; the 16 high-order bits of n are ignored. |
void |
writeUTF(java.lang.String s)Writes the String s as a sequence of characters, but using UTF-8 encoding for the characters, and including the String length data so that the corresponding DataInput.readUTF() method can reconstitute a String from the written data. |
| Constructor Detail |
|---|
public PofOutputStream(PofWriter out)
PofWriter.
out - the PofWriter to write to| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
b. The 24 high-order bits of b are ignored.write in interface OutputStreamingwrite in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.OutputStreamb - the byte to write (passed as an integer)java.io.IOException - if an I/O error occurs
public void write(byte[] ab)
throws java.io.IOException
ab.write in interface OutputStreamingwrite in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.OutputStreamab - the byte array to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if ab is null
public void write(byte[] ab,
int of,
int cb)
throws java.io.IOException
cb bytes starting at offset of from the array ab.write in interface OutputStreamingwrite in interface java.io.DataOutputwrite in interface java.io.ObjectOutputwrite in class java.io.OutputStreamab - the byte array to write fromof - the offset into ab to start writing fromcb - the number of bytes from ab to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if ab is nulljava.lang.IndexOutOfBoundsException - if of is negative, or cb is negative, or of+cb is greater than ab.length
public void flush()
throws java.io.IOException
flush in interface OutputStreamingflush in interface java.io.Flushableflush in interface java.io.ObjectOutputflush in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs
public void close()
throws java.io.IOException
close in interface OutputStreamingclose in interface java.io.Closeableclose in interface java.io.ObjectOutputclose in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs
public void writeBoolean(boolean f)
throws java.io.IOException
f.writeBoolean in interface java.io.DataOutputf - the boolean to be writtenjava.io.IOException - if an I/O error occurs
public void writeByte(int b)
throws java.io.IOException
b. The 24 high-order bits of b are ignored.writeByte in interface java.io.DataOutputb - the byte to write (passed as an integer)java.io.IOException - if an I/O error occurs
public void writeShort(int n)
throws java.io.IOException
n; the 16 high-order bits of n are ignored.writeShort in interface java.io.DataOutputn - the short to write (passed as an integer)java.io.IOException - if an I/O error occurs
public void writeChar(int ch)
throws java.io.IOException
ch; the 16 high-order bits of ch are ignored.writeChar in interface java.io.DataOutputch - the char to write (passed as an integer)java.io.IOException - if an I/O error occurs
public void writeInt(int n)
throws java.io.IOException
writeInt in interface java.io.DataOutputn - the int to writejava.io.IOException - if an I/O error occurs
public void writeLong(long l)
throws java.io.IOException
writeLong in interface java.io.DataOutputl - the long to writejava.io.IOException - if an I/O error occurs
public void writeFloat(float fl)
throws java.io.IOException
writeFloat in interface java.io.DataOutputfl - the float to writejava.io.IOException - if an I/O error occurs
public void writeDouble(double dfl)
throws java.io.IOException
writeDouble in interface java.io.DataOutputdfl - the double to writejava.io.IOException - if an I/O error occurs
public void writeBytes(java.lang.String s)
throws java.io.IOException
s, but only the low-order byte from each character of the String is written.writeBytes in interface java.io.DataOutputs - the String to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if s is null
public void writeChars(java.lang.String s)
throws java.io.IOException
s as a sequence of characters.writeChars in interface java.io.DataOutputs - the String to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if s is null
public void writeUTF(java.lang.String s)
throws java.io.IOException
s as a sequence of characters, but using UTF-8 encoding for the characters, and including the String length data so that the corresponding DataInput.readUTF() method can reconstitute a String from the written data.writeUTF in interface java.io.DataOutputs - the String to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if s is null
public void writeObject(java.lang.Object o)
throws java.io.IOException
o so that the corresponding ObjectInput.readObject() method can reconstitute an Object from the written data.writeObject in interface java.io.ObjectOutputo - the Object to writejava.io.IOException - if an I/O error occurspublic PofWriter getPofWriter()
public int nextIndex()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||