Methods Summary |
---|
public void | append(short arg) result.append( arg ) ;
|
public void | append(int arg) result.append( arg ) ;
|
public void | append(long arg) result.append( arg ) ;
|
public void | append(float arg) result.append( arg ) ;
|
public void | append(double arg) result.append( arg ) ;
|
public void | append(java.lang.String arg) result.append( arg ) ;
|
public void | append(boolean arg) result.append( arg ) ;
|
public void | append(char arg) result.append( arg ) ;
|
protected void | appendObjectHeader(java.lang.Object obj)
result.append( obj.getClass().getName() ) ;
result.append( "<" ) ;
result.append( System.identityHashCode( obj ) ) ;
result.append( ">" ) ;
Class compClass = obj.getClass().getComponentType() ;
if (compClass != null) {
result.append( "[" ) ;
if (compClass == boolean.class) {
boolean[] arr = (boolean[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == byte.class) {
byte[] arr = (byte[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == short.class) {
short[] arr = (short[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == int.class) {
int[] arr = (int[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == long.class) {
long[] arr = (long[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == char.class) {
char[] arr = (char[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == float.class) {
float[] arr = (float[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else if (compClass == double.class) {
double[] arr = (double[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
} else { // array of object
java.lang.Object[] arr = (java.lang.Object[])obj ;
result.append( arr.length ) ;
result.append( "]" ) ;
}
}
result.append( "(" ) ;
|
public abstract void | endElement()
|
public abstract void | endObject(java.lang.String str)
|
public abstract void | endObject()
|
public static com.sun.corba.se.impl.orbutil.ObjectWriter | make(boolean isIndenting, int initialLevel, int increment)
if (isIndenting)
return new IndentingObjectWriter( initialLevel, increment ) ;
else
return new SimpleObjectWriter() ;
|
public abstract void | startElement()
|
public abstract void | startObject(java.lang.Object obj)
|
public java.lang.String | toString() return result.toString() ;
|