|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
java.io.OutputStreamWriter
ariba.util.io.UnicodeEscapeOutputStreamWriter
public class UnicodeEscapeOutputStreamWriter
UnicodeEscapeOutputStreamWriter is a special outputStreamWriter to write UnicodeEscaped (Ariba's internal encoding scheme) data to the underlying output stream. This is used internally by our JavaFile class, with the underlying output stream being a FileOutputStream.
| Constructor Summary | |
|---|---|
UnicodeEscapeOutputStreamWriter(OutputStream out)
Create an OutputStreamWriter that uses Ariba internal encoding scheme. |
|
UnicodeEscapeOutputStreamWriter(OutputStream out,
String enc)
Create an OutputStreamWriter that uses the named character encoding. |
|
| Method Summary | |
|---|---|
void |
close()
Close the stream. |
void |
flush()
Flush remaining data to the underlying output stream. |
String |
getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters. |
| Methods inherited from class java.io.OutputStreamWriter |
|---|
write, write |
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnicodeEscapeOutputStreamWriter(OutputStream out,
String enc)
throws UnsupportedEncodingException
out - An OutputStreamenc - The encoding
UnsupportedEncodingException - If the named encoding is not supportedpublic UnicodeEscapeOutputStreamWriter(OutputStream out)
out - An OutputStream, must not be null.| Method Detail |
|---|
public String getEncoding()
getEncoding in class OutputStreamWriter
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class OutputStreamWritercbuf - Buffer of charactersoff - Offset from which to start writing characterslen - Number of characters to write
IOException - If an I/O error occurs
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamWriterIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamWriterIOException - If an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||