intarsys PDF library API

de.intarsys.pdf.encoding
Class MappedWriter

java.lang.Object
  extended by java.io.Writer
      extended by de.intarsys.pdf.encoding.MappedWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable

public class MappedWriter
extends Writer

A writer that uses a PDF style encoding to map unicode to byte code.


Constructor Summary
MappedWriter(OutputStream out, Encoding encoding)
          Create a MappedWriter
 
Method Summary
 void close()
           
 void flush()
           
 Encoding getEncoding()
          The encoding used by this writer.
 void write(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedWriter

public MappedWriter(OutputStream out,
                    Encoding encoding)
Create a MappedWriter

Parameters:
out - The underlying output byte stream.
encoding - The encoding to use.
Method Detail

getEncoding

public Encoding getEncoding()
The encoding used by this writer.

Returns:
The encoding used by this writer.

close

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

flush

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

write

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

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.