|
|||||||||
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(java.io.OutputStream out)
Create an OutputStreamWriter that uses Ariba internal encoding scheme. |
|
UnicodeEscapeOutputStreamWriter(java.io.OutputStream out,
java.lang.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. |
java.lang.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(java.io.OutputStream out, java.lang.String enc) throws java.io.UnsupportedEncodingException
out
- An OutputStreamenc
- The encoding
java.io.UnsupportedEncodingException
- If the named encoding is not supportedpublic UnicodeEscapeOutputStreamWriter(java.io.OutputStream out)
out
- An OutputStream, must not be null.Method Detail |
---|
public java.lang.String getEncoding()
getEncoding
in class java.io.OutputStreamWriter
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.OutputStreamWriter
cbuf
- Buffer of charactersoff
- Offset from which to start writing characterslen
- Number of characters to write
java.io.IOException
- If an I/O error occurspublic void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStreamWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStreamWriter
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 |