com.bea.wli.sb.sources
Class TransformOptions

java.lang.Object
  extended by com.bea.wli.sb.sources.TransformOptions

public class TransformOptions
extends Object

Class used to represent a set of transformation options. Instances of this class are used in conjunction with the Transformer class to influence how a input source is converted to an output source (e.g. a change in character-set encoding from SHIFT_JIS to EUC-JP). This class is also used by the InputStream/OutputStream methods of the Source interface, since that is effectively also a transformation between the Source and the byte-level representation in the InputStream/OutputStream.


Field Summary
static String CHARACTER_ENCODING
          The desired character-set encoding to use in the transformation
 
Constructor Summary
TransformOptions()
           
TransformOptions(TransformOptions baseOptions)
           
 
Method Summary
 void addAll(TransformOptions options)
           
 Object get(Object option)
           
 String getCharacterEncoding()
           
 boolean hasOption(Object option)
           
static boolean hasOption(TransformOptions options, Object option)
           
 TransformOptions put(Object option)
           
 TransformOptions put(Object option, int value)
           
 TransformOptions put(Object option, Object value)
           
 void remove(Object option)
           
static Object safeGet(TransformOptions options, Object option)
           
 TransformOptions setCharacterEncoding(String enc)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CHARACTER_ENCODING

public static final String CHARACTER_ENCODING
The desired character-set encoding to use in the transformation

See Also:
Constant Field Values
Constructor Detail

TransformOptions

public TransformOptions()

TransformOptions

public TransformOptions(TransformOptions baseOptions)
Method Detail

setCharacterEncoding

public TransformOptions setCharacterEncoding(String enc)

getCharacterEncoding

public String getCharacterEncoding()

hasOption

public boolean hasOption(Object option)

get

public Object get(Object option)

put

public TransformOptions put(Object option)

put

public TransformOptions put(Object option,
                            int value)

put

public TransformOptions put(Object option,
                            Object value)

remove

public void remove(Object option)

addAll

public void addAll(TransformOptions options)

safeGet

public static Object safeGet(TransformOptions options,
                             Object option)

hasOption

public static boolean hasOption(TransformOptions options,
                                Object option)

toString

public String toString()
Overrides:
toString in class Object