org.openjena.atlas.io
Class OutStreamUTF8
java.lang.Object
java.io.Writer
org.openjena.atlas.io.OutStreamUTF8
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public final class OutStreamUTF8
- extends java.io.Writer
Output UTF-8 encoded data.
This class implements the "Modified UTF8" encoding rules (null -> C0 80)
It will encode any 16 bit value.
It can be used as a pure UTf-8 encoder.
- See Also:
InStreamUTF8
|
Method Summary |
void |
close()
|
void |
flush()
|
void |
output(int x)
|
static void |
output(java.io.OutputStream out,
int ch)
|
void |
write(char[] b)
|
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int ch)
|
void |
write(java.lang.String str)
|
void |
write(java.lang.String str,
int idx,
int len)
|
| Methods inherited from class java.io.Writer |
append, append, append |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutStreamUTF8
public OutStreamUTF8(java.io.OutputStream out)
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
write in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(int ch)
throws java.io.IOException
- Overrides:
write in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(char[] b)
throws java.io.IOException
- Overrides:
write in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(java.lang.String str)
throws java.io.IOException
- Overrides:
write in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(java.lang.String str,
int idx,
int len)
throws java.io.IOException
- Overrides:
write in class java.io.Writer
- Throws:
java.io.IOException
output
public void output(int x)
output
public static void output(java.io.OutputStream out,
int ch)
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush in interface java.io.Flushable- Specified by:
flush in class java.io.Writer
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close in interface java.io.Closeable- Specified by:
close in class java.io.Writer
- Throws:
java.io.IOException
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.