barcode4j 2.1.0

org.krysalis.barcode4j.tools
Class MessageUtil

java.lang.Object
  extended by org.krysalis.barcode4j.tools.MessageUtil

public class MessageUtil
extends java.lang.Object

Utilities for pre-processing messages.


Constructor Summary
MessageUtil()
           
 
Method Summary
static java.lang.String filterNonPrintableCharacters(java.lang.String text)
          Filters non-printable ASCII characters (0-31 and 127) from a string with spaces and returns that.
static java.lang.String unescapeUnicode(java.lang.String message)
          Un-escapes escaped Unicode characters in a message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUtil

public MessageUtil()
Method Detail

unescapeUnicode

public static java.lang.String unescapeUnicode(java.lang.String message)
Un-escapes escaped Unicode characters in a message. This is used to support characters not encodable in XML, such as the RS or GS characters.

Parameters:
message - the message
Returns:
the processed message

filterNonPrintableCharacters

public static java.lang.String filterNonPrintableCharacters(java.lang.String text)
Filters non-printable ASCII characters (0-31 and 127) from a string with spaces and returns that. Please note that non-printable characters outside the ASCII character set are not touched by this method.

Parameters:
text - the text to be filtered.
Returns:
the filtered text

barcode4j 2.1.0

Copyright © 2000-2010 Jeremias Maerki. All rights reserved.