org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.helper
Class EncodingUtilities

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.helper.EncodingUtilities

public class EncodingUtilities
extends Object


Constructor Summary
EncodingUtilities(String codepage)
           
 
Method Summary
 String getEncoding()
           
 byte[] getEncodingHeader()
           
 byte[] getHeader()
           
 byte[] getSpace()
           
 void writeEncodedText(char[] textString, OutputStream out)
          Writes encoded text for the current encoding into the output stream.
 void writeEncodedText(String textString, OutputStream out)
          Writes encoded text for the current encoding into the output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncodingUtilities

public EncodingUtilities(String codepage)
                  throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException
Method Detail

getSpace

public byte[] getSpace()

getHeader

public byte[] getHeader()

writeEncodedText

public void writeEncodedText(char[] textString,
                             OutputStream out)
                      throws IOException
Writes encoded text for the current encoding into the output stream.

Parameters:
textString - the text that should be written.
Throws:
IOException - if an error occures.

writeEncodedText

public void writeEncodedText(String textString,
                             OutputStream out)
                      throws IOException
Writes encoded text for the current encoding into the output stream.

Parameters:
textString - the text that should be written.
Throws:
IOException - if an error occures.

getEncoding

public String getEncoding()

getEncodingHeader

public byte[] getEncodingHeader()