Package jadex.commons.beans
Class XMLDecoder
- java.lang.Object
- 
- jadex.commons.beans.XMLDecoder
 
- 
 public class XMLDecoder extends java.lang.ObjectXMLDecoderreads objects from xml created byXMLEncoder.ObjectInputStream. - 
- 
Constructor SummaryConstructors Constructor Description XMLDecoder(java.io.InputStream inputStream)Create a decoder to read from specified input stream.XMLDecoder(java.io.InputStream inputStream, java.lang.Object owner)Create a decoder to read from specified input stream.XMLDecoder(java.io.InputStream inputStream, java.lang.Object owner, ExceptionListener listener)Create a decoder to read from specified input stream.XMLDecoder(java.io.InputStream inputStream, java.lang.Object owner, ExceptionListener listener, java.lang.ClassLoader cl)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the input stream of xml data.ExceptionListenergetExceptionListener()Returns the exception listener.java.lang.ObjectgetOwner()Returns the owner of this decoder.java.lang.ObjectreadObject()Reads the next object.voidsetExceptionListener(ExceptionListener listener)Sets the exception listener.voidsetOwner(java.lang.Object owner)Sets the owner of this decoder.
 
- 
 - 
- 
Constructor Detail- 
XMLDecoderpublic XMLDecoder(java.io.InputStream inputStream) Create a decoder to read from specified input stream.- Parameters:
- inputStream- an input stream of xml
 
 - 
XMLDecoderpublic XMLDecoder(java.io.InputStream inputStream, java.lang.Object owner)Create a decoder to read from specified input stream.- Parameters:
- inputStream- an input stream of xml
- owner- the owner of this decoder
 
 - 
XMLDecoderpublic XMLDecoder(java.io.InputStream inputStream, java.lang.Object owner, ExceptionListener listener)Create a decoder to read from specified input stream.- Parameters:
- inputStream- an input stream of xml
- owner- the owner of this decoder
- listener- listen to the exceptions thrown by the decoder
 
 - 
XMLDecoderpublic XMLDecoder(java.io.InputStream inputStream, java.lang.Object owner, ExceptionListener listener, java.lang.ClassLoader cl)
 
- 
 - 
Method Detail- 
closepublic void close() Close the input stream of xml data.
 - 
getExceptionListenerpublic ExceptionListener getExceptionListener() Returns the exception listener.- Returns:
- the exception listener
 
 - 
getOwnerpublic java.lang.Object getOwner() Returns the owner of this decoder.- Returns:
- the owner of this decoder
 
 - 
readObjectpublic java.lang.Object readObject() Reads the next object.- Returns:
- the next object
- Throws:
- java.lang.ArrayIndexOutOfBoundsException- if no more objects to read
 
 - 
setExceptionListenerpublic void setExceptionListener(ExceptionListener listener) Sets the exception listener.- Parameters:
- listener- an exception listener
 
 - 
setOwnerpublic void setOwner(java.lang.Object owner) Sets the owner of this decoder.- Parameters:
- owner- the owner of this decoder
 
 
- 
 
- 
 
-