Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.util.formats
Class StringSubstitutionFormat  view StringSubstitutionFormat download StringSubstitutionFormat.java

java.lang.Object
  extended byjava.text.Format
      extended byorg.jdaemon.util.formats.StringSubstitutionFormat
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
EscapedXMLFormat

public class StringSubstitutionFormat
extends java.text.Format


Nested Class Summary
 
Nested classes inherited from class java.text.Format
java.text.Format.Field
 
Field Summary
(package private)  java.lang.String[] formatted
           
(package private)  java.lang.String[] parsed
           
 
Fields inherited from class java.text.Format
 
Constructor Summary
StringSubstitutionFormat(java.lang.String[] parsed, java.lang.String[] formatted)
          Creates a new instance of StringSubstitutionFormat
 
Method Summary
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer stringBuffer, java.text.FieldPosition fieldPosition)
          This method formats an Object into a String and appends the String to a StringBuffer.
 java.lang.Object parseObject(java.lang.String str, java.text.ParsePosition parsePosition)
          This method parses a String and converts the parsed contents into an Object.
static void substitute(java.lang.String target, int offset, java.lang.StringBuffer result, java.lang.String[] to_replace, java.lang.String[] replacements)
           
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parsed

java.lang.String[] parsed

formatted

java.lang.String[] formatted
Constructor Detail

StringSubstitutionFormat

public StringSubstitutionFormat(java.lang.String[] parsed,
                                java.lang.String[] formatted)
Creates a new instance of StringSubstitutionFormat

Method Detail

substitute

public static void substitute(java.lang.String target,
                              int offset,
                              java.lang.StringBuffer result,
                              java.lang.String[] to_replace,
                              java.lang.String[] replacements)

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer stringBuffer,
                                     java.text.FieldPosition fieldPosition)
Description copied from class: java.text.Format
This method formats an Object into a String and appends the String to a StringBuffer.


parseObject

public java.lang.Object parseObject(java.lang.String str,
                                    java.text.ParsePosition parsePosition)
Description copied from class: java.text.Format
This method parses a String and converts the parsed contents into an Object.