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

Quick Search    Search Deep

java.beans
Class XMLEncoder  view XMLEncoder download XMLEncoder.java

java.lang.Object
  extended byjava.beans.Encoder
      extended byjava.beans.XMLEncoder

public class XMLEncoder
extends Encoder

This class uses the PersistenceDelegate and Encoder infrastructure to generate an XML representation of the objects it serializes.

Since:
1.4

Field Summary
private  int accessCounter
           
(package private)  java.lang.Exception exception
           
(package private)  java.lang.Object owner
           
(package private)  gnu.java.beans.encoder.ScanEngine scanEngine
           
 
Fields inherited from class java.beans.Encoder
 
Constructor Summary
XMLEncoder(java.io.OutputStream os)
           
 
Method Summary
 void close()
           
 void flush()
           
 java.lang.Object getOwner()
           
 void setOwner(java.lang.Object o)
           
 void writeExpression(Expression expr)
           Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.
 void writeObject(java.lang.Object o)
           
 void writeStatement(Statement stmt)
           Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.
 
Methods inherited from class java.beans.Encoder
get, getExceptionListener, getPersistenceDelegate, isImmutableType, putCandidate, remove, setExceptionListener, setPersistenceDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

java.lang.Object owner

exception

java.lang.Exception exception

scanEngine

gnu.java.beans.encoder.ScanEngine scanEngine

accessCounter

private int accessCounter
Constructor Detail

XMLEncoder

public XMLEncoder(java.io.OutputStream os)
Method Detail

close

public void close()

flush

public void flush()

writeExpression

public void writeExpression(Expression expr)
Description copied from class: Encoder

Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.

Overrides:
writeExpression in class Encoder

writeStatement

public void writeStatement(Statement stmt)
Description copied from class: Encoder

Note: If you call this method not from within an object instantiation and initialization sequence it will be silently ignored.

Overrides:
writeStatement in class Encoder

writeObject

public void writeObject(java.lang.Object o)
Overrides:
writeObject in class Encoder

setOwner

public void setOwner(java.lang.Object o)

getOwner

public java.lang.Object getOwner()