Sun N1 Service Provisioning System 5.2 Command-Line Interface Reference Manual

util.xfm

This command is used to transform a serialized object representation to a human-readable representation.

Table 15–4 Arguments for the util.xfm Command

Argument 

Syntax 

Description 

in 

Required 

ReaderWrapper 

The input stream to be transformed 

type 

Required 

TransformType 

The type of transformation to apply to the input stream 

xfm 

Required 

ReaderWrapper 

The transformed stream 


Example 15–1 Using the util.xfm Command

This example performs a PERL transformation, which is described in the perl.xml file, on the text specified in the in.txt file. The result is written to standard output. You can use the -of argument to redirect the standard output to a file.


cr_cli -cmd util.xfm -in in.txt -type PERL -xfm perl.xml -u terry -p 123xyz

Since the class of the input stream is ReaderWrapper, you can specify any syntax supported by the String2ReaderWrapper converter to specify each stream's source. For example, to read input from standard input instead of from the in.txt file, use -in - instead of -in in.txt.