fi.iki.hsivonen.io
Class NcrEscapingWindows1252OutputStreamWriter

java.lang.Object
  extended by java.io.Writer
      extended by fi.iki.hsivonen.io.NcrEscapingWindows1252OutputStreamWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class NcrEscapingWindows1252OutputStreamWriter
extends Writer


Field Summary
private static int[] BYTES
           
private static int[] CODE_POINTS
           
private  OutputStream out
           
private  int prev
           
private static int SURROGATE_OFFSET
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
NcrEscapingWindows1252OutputStreamWriter(OutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 void write(char[] buf, int offset, int count)
           
 void write(int c)
           
private  void writeNcr(int c)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SURROGATE_OFFSET

private static final int SURROGATE_OFFSET
See Also:
Constant Field Values

CODE_POINTS

private static int[] CODE_POINTS

BYTES

private static int[] BYTES

out

private OutputStream out

prev

private int prev
Constructor Detail

NcrEscapingWindows1252OutputStreamWriter

public NcrEscapingWindows1252OutputStreamWriter(OutputStream out)
Method Detail

write

public void write(char[] buf,
                  int offset,
                  int count)
           throws IOException
Specified by:
write in class Writer
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

write

public void write(int c)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException
See Also:
Writer.write(int)

writeNcr

private void writeNcr(int c)
               throws IOException
Throws:
IOException