A C D E F G J M O P R S T U W _

A

add(Class, Class) - Method in class JSX.ObjectReader
 
add(Class, Class) - Method in class JSX.ObjectWriter
 
annotateClass(Class) - Method in class JSX.ObjectWriter
Not implemented
asString(Object) - Static method in class JSX.P
Returns the XML of the object graph as a string.
available() - Method in class JSX.ObjectReader
returns 1 if source is ready; else 0

C

close() - Method in class JSX.ObjectReader
 
close() - Method in class JSX.ObjectWriter
 

D

defaulted(String) - Method in class JSX.ObjectReader.GetFieldImpl
experimental version
defaultReadObject() - Method in class JSX.ObjectReader
Call from within a class's readObject(ObjectInputStream ois) method, so the object is deserialized by the default way.
defaultWriteObject() - Method in class JSX.ObjectWriter
 
disableExternalization() - Method in class JSX.ObjectReader
Create object and step through inherited classes +
disableExternalization() - Method in class JSX.ObjectWriter
 
drain() - Method in class JSX.ObjectWriter
Not implemented

E

enableReplaceObject(boolean) - Method in class JSX.ObjectWriter
Not implemented
enableResolveObject(boolean) - Method in class JSX.ObjectReader
 

F

flush() - Method in class JSX.ObjectWriter
 
fromFile(String) - Static method in class JSX.P
Reads the XML from the named file, and returns its object graph.
fromString(String) - Static method in class JSX.P
Returns the object graph of the XML in the string.

G

get(String, boolean) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, byte) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, char) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, short) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, int) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, long) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, float) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, double) - Method in class JSX.ObjectReader.GetFieldImpl
 
get(String, Object) - Method in class JSX.ObjectReader.GetFieldImpl
 
getHash() - Method in class JSX.ObjectReader
 
getHash() - Method in class JSX.ObjectWriter
 
getObjectStreamClass() - Method in class JSX.ObjectReader.GetFieldImpl
not yet implemented

J

JSX - package JSX
 

M

main(String[]) - Static method in class JSX.ObjectReader
USAGE: java JSX.ObjectReader fileName (use "-" for stdin, defaults to example.xml)
main(String[]) - Static method in class JSX.ObjectWriter
USAGE: java JSX.ObjectWriter className (defaults to JSX.Person)

O

ObjectReader - Class in JSX
ObjectReader can be used in place of ObjectInputStream, to serialize object graphs to XML, instead of the binary format.
ObjectReader(InputStream) - Constructor for class JSX.ObjectReader
 
ObjectReader(InputStream, ClassLoader) - Constructor for class JSX.ObjectReader
Pass in a classloader for JSX to lookup classes that are being deserialized.
ObjectReader(Reader) - Constructor for class JSX.ObjectReader
 
ObjectReader(Reader, ClassLoader) - Constructor for class JSX.ObjectReader
Pass in a classloader for JSX to lookup classes that are being deserialized.
ObjectReader(DataReaderI) - Constructor for class JSX.ObjectReader
 
ObjectReader(DataReaderI, ClassLoader) - Constructor for class JSX.ObjectReader
Pass in a classloader for JSX to lookup classes that are being deserialized.
ObjectReader.GetFieldImpl - Class in JSX
 
ObjectWriter - Class in JSX
ObjectWriter can be used in place of ObjectOutputStream, to serialize object graphs to XML, instead of the binary format.
ObjectWriter() - Constructor for class JSX.ObjectWriter
Writes to System.out (convenient for testing)
ObjectWriter(OutputStream) - Constructor for class JSX.ObjectWriter
 
ObjectWriter(DataWriterI) - Constructor for class JSX.ObjectWriter
For output other than XML (or to different XML formats)
ObjectWriter.PutFieldImpl - Class in JSX
 

P

P - Class in JSX
These convenience methods simply wrap the calls to JSX.
p(Object) - Static method in class JSX.P
This static convenience method is helpful for debugging, by revealing the internals of object graphs: their classes, superclasses, fields (inherited and hidden) and cyclic references.
p(OutputStream, Object) - Static method in class JSX.P
 
p(Writer, Object) - Static method in class JSX.P
 
put(String, boolean) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, char) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, byte) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, short) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, int) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, long) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, float) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, double) - Method in class JSX.ObjectWriter.PutFieldImpl
 
put(String, Object) - Method in class JSX.ObjectWriter.PutFieldImpl
 
putFields() - Method in class JSX.ObjectWriter
 

R

read() - Method in class JSX.ObjectReader
 
read(byte[], int, int) - Method in class JSX.ObjectReader
 
readBoolean() - Method in class JSX.ObjectReader
 
readByte() - Method in class JSX.ObjectReader
 
readChar() - Method in class JSX.ObjectReader
 
readClassDescriptor() - Method in class JSX.ObjectReader
Never called by JSX, so overriding it has no effect.
readDouble() - Method in class JSX.ObjectReader
 
readFields() - Method in class JSX.ObjectReader
Reads the stream, same as defaultReadObject, but instead of storing into fields, it stores it in a hash that can be queried.
readFloat() - Method in class JSX.ObjectReader
 
readFully(byte[]) - Method in class JSX.ObjectReader
 
readFully(byte[], int, int) - Method in class JSX.ObjectReader
 
readInt() - Method in class JSX.ObjectReader
 
readLine() - Method in class JSX.ObjectReader
This operates at the wrong level for reading object encoded as XML - this method calls _readUTF() instead, and so will work if characters have been written explicitly as object data
readLong() - Method in class JSX.ObjectReader
 
readObjectOverride() - Method in class JSX.ObjectReader
 
readShort() - Method in class JSX.ObjectReader
 
readStreamHeader() - Method in class JSX.ObjectReader
Not implemented
readUnshared() - Method in class JSX.ObjectReader
 
readUnsignedByte() - Method in class JSX.ObjectReader
 
readUnsignedShort() - Method in class JSX.ObjectReader
 
readUTF() - Method in class JSX.ObjectReader
 
registerValidation(ObjectInputValidation, int) - Method in class JSX.ObjectReader
 
replaceObject(Object) - Method in class JSX.ObjectWriter
now implemented
reset() - Method in class JSX.ObjectWriter
 
resolveClass(ObjectStreamClass, String) - Method in class JSX.ObjectReader
First attempts to load classes with Thread.currentThread().getContextClassLoader(); if fails, it defaults to the classloader that loaded JSX.Reader.
resolveObject(Object) - Method in class JSX.ObjectReader
Override this method, to replace a deserialized object with another

S

setAutoClose(boolean) - Method in class JSX.ObjectWriter
(extension) For more than one writeObject() call in the one ObjectWriter, forming a single XML document.
setEmbedded(boolean) - Method in class JSX.ObjectWriter
(extension) For embedding within a SOAP envelope, or any other enclosing XML.
setPrettyPrint(boolean) - Method in class JSX.ObjectWriter
(extension) Set to false to turn off indentation and newlines

T

toFile(String, Object) - Static method in class JSX.P
Writes the XML of the object graph to the named file.

U

useProtocolVersion(int) - Method in class JSX.ObjectWriter
Not implemented

W

write(ObjectOutput) - Method in class JSX.ObjectWriter.PutFieldImpl
Not implemented: deprecated method.
write(int) - Method in class JSX.ObjectWriter
 
write(byte[]) - Method in class JSX.ObjectWriter
 
write(byte[], int, int) - Method in class JSX.ObjectWriter
 
writeBoolean(boolean) - Method in class JSX.ObjectWriter
 
writeByte(int) - Method in class JSX.ObjectWriter
 
writeBytes(String) - Method in class JSX.ObjectWriter
 
writeChar(int) - Method in class JSX.ObjectWriter
 
writeChars(String) - Method in class JSX.ObjectWriter
 
writeClassDescriptor(ObjectStreamClass) - Method in class JSX.ObjectWriter
Not implemented
writeDouble(double) - Method in class JSX.ObjectWriter
 
writeFields() - Method in class JSX.ObjectWriter
 
writeFloat(float) - Method in class JSX.ObjectWriter
 
writeInt(int) - Method in class JSX.ObjectWriter
 
writeLong(long) - Method in class JSX.ObjectWriter
 
writeObjectOverride(Object) - Method in class JSX.ObjectWriter
 
writeShort(int) - Method in class JSX.ObjectWriter
 
writeStreamHeader() - Method in class JSX.ObjectWriter
Not implemented
writeUnshared(Object) - Method in class JSX.ObjectWriter
 
writeUTF(String) - Method in class JSX.ObjectWriter
 

_

_readUTF() - Method in class JSX.ObjectReader
 

A C D E F G J M O P R S T U W _