Class EncodingUtilities
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.helper.EncodingUtilities
-
public class EncodingUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description EncodingUtilities(String codepage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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()
-
-