org.openjena.atlas.io
Class OutStreamUTF8

java.lang.Object
  extended by java.io.Writer
      extended by org.openjena.atlas.io.OutStreamUTF8
All Implemented Interfaces:
Closeable, Flushable, Appendable

public final class OutStreamUTF8
extends 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

Constructor Summary
OutStreamUTF8(OutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 void output(int x)
           
static void output(OutputStream out, int ch)
           
 void write(char[] b)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int ch)
           
 void write(String str)
           
 void write(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
 

Constructor Detail

OutStreamUTF8

public OutStreamUTF8(OutputStream out)
Method Detail

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Specified by:
write in class Writer
Throws:
IOException

write

public void write(int ch)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] b)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str,
                  int idx,
                  int len)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

output

public void output(int x)

output

public static void output(OutputStream out,
                          int ch)
                   throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Specified by:
flush in class Writer
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Writer
Throws:
IOException


Licenced under the Apache License, Version 2.0