org.tromer.jie
Class UnicodeWriter
java.lang.Object
|
+--java.io.Writer
|
+--java.io.FilterWriter
|
+--org.tromer.jie.UnicodeWriter
- public class UnicodeWriter
- extends java.io.FilterWriter
Filtering Writer that converrs any non-ASCII characters (128 and above)
to a Java-style Unicode escape codes.
The proper way to do this is by defining a new encoding, but the API For
doing that is not publicly defined.
Fields inherited from class java.io.FilterWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Method Summary |
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters. |
void |
write(int c)
Write a single character. |
void |
write(java.lang.String str,
int off,
int len)
Write a portion of a string. |
Methods inherited from class java.io.FilterWriter |
close,
flush |
Methods inherited from class java.io.Writer |
write,
write |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
UnicodeWriter
public UnicodeWriter(java.io.Writer out)
write
public void write(int c)
throws java.io.IOException
- Write a single character.
- Overrides:
- write in class java.io.FilterWriter
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Write a portion of an array of characters.
- Overrides:
- write in class java.io.FilterWriter
- Parameters:
cbuf
- Buffer of characters to be writtenoff
- Offset from which to start reading characterslen
- Number of characters to be written
write
public void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
- Write a portion of a string.
- Overrides:
- write in class java.io.FilterWriter
- Parameters:
str
- String to be writtenoff
- Offset from which to start reading characterslen
- Number of characters to be written