|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Reader
java.io.InputStreamReader
ariba.util.io.UnicodeEscapeInputStreamReader
public class UnicodeEscapeInputStreamReader
UnicodeEscapeInputStreamReader is a special inputStreamWriter to read from the underlying input stream and convert the data into UnicodeEscaped (Ariba's internal encoding scheme) format. This is used internally by our stubgenerator, should not be used elsewhere.
| Constructor Summary | |
|---|---|
UnicodeEscapeInputStreamReader(InputStream in)
Create an InputStreamReader that uses internal Ariba encoding. |
|
UnicodeEscapeInputStreamReader(InputStream in,
String enc)
Constructor: we don't support this constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close the stream. |
String |
getEncoding()
Returns the canonical name of the character encoding being used by this stream. |
int |
read(char[] cbuf,
int off,
int len)
Read characters into a portion of an array. |
boolean |
ready()
Tell whether this stream is ready to be read. |
| Methods inherited from class java.io.InputStreamReader |
|---|
read |
| Methods inherited from class java.io.Reader |
|---|
mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnicodeEscapeInputStreamReader(InputStream in)
in - An InputStream, must not be null.
public UnicodeEscapeInputStreamReader(InputStream in,
String enc)
throws UnsupportedEncodingException
in - An InputStreamenc - The encoding
UnsupportedEncodingException - If the named encoding is not supported| Method Detail |
|---|
public String getEncoding()
getEncoding in class InputStreamReader
public int read(char[] cbuf,
int off,
int len)
throws IOException
read in class InputStreamReadercbuf - Destination bufferoff - Offset at which to start storing characterslen - Maximum number of characters to read
IOException - If an I/O error occurs
public boolean ready()
throws IOException
ready in class InputStreamReaderIOException - If an I/O error occurs
public void close()
throws IOException
close in interface Closeableclose in class InputStreamReaderIOException - If an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||