de.intarsys.pdf.encoding
Class MappedWriter
java.lang.Object
java.io.Writer
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.
MappedWriter
public MappedWriter(OutputStream out,
Encoding encoding)
- Create a MappedWriter
- Parameters:
out - The underlying output byte stream.encoding - The encoding to use.
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
getEncoding
public Encoding getEncoding()
- The encoding used by this writer.
- Returns:
- The encoding used by this writer.
write
public void write(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
write in class Writer
- Throws:
IOException
Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.