|
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.Writer
com.tangosol.io.Utf8Writer
public class Utf8Writer
A Utf8Writer is used to write character data onto an underlying stream.
| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
Utf8Writer()Construct a Utf8Writer that buffers the output. |
|
Utf8Writer(java.io.OutputStream stream)Construct a Utf8Writer that puts the output into an OutputStream. |
|
| Method Summary | |
|---|---|
void |
close()Close the stream, flushing it first. |
void |
flush()Flush the stream. |
byte[] |
toByteArray()If the underlying stream is a ByteArrayOutputStream (such as with the no-parameter constructor), this will return the binary UTF8-encoded data that resulted from the character data written to this Writer. |
void |
write(char[] ach)Write an array of characters. |
void |
write(char[] ach, int of, int cch)Write a portion of an array of characters. |
void |
write(int ch)Write a single character. |
void |
write(java.lang.String s)Write a string. |
void |
write(java.lang.String s, int of, int cch)Write a portion of a string. |
| Methods inherited from class java.io.Writer |
|---|
append, append, append |
| Constructor Detail |
|---|
public Utf8Writer()
public Utf8Writer(java.io.OutputStream stream)
stream - the underlying stream to write to| Method Detail |
|---|
public void write(int ch)
throws java.io.IOException
Subclasses that intend to support efficient single-character output should override this method.
write in class java.io.Writerch - int specifying a character to be written.java.io.IOException
public void write(char[] ach)
throws java.io.IOException
write in class java.io.Writerach - array of characters to writejava.io.IOException
public void write(char[] ach,
int of,
int cch)
throws java.io.IOException
write in class java.io.Writerach - array of characters to write fromof - offset from which to start writing characterscch - number of characters to writejava.io.IOException
public void write(java.lang.String s)
throws java.io.IOException
write in class java.io.Writers - the String to writejava.io.IOException
public void write(java.lang.String s,
int of,
int cch)
throws java.io.IOException
write in class java.io.Writers - the String to write fromof - offset from which to start writing characterscch - number of characters to writejava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOException - If an I/O error occurs
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.Writerjava.io.IOException - If an I/O error occurspublic byte[] toByteArray()
java.lang.ClassCastException - if the underlying stream is not ByteArrayOutputStream
|
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 | |||||||