|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.openbeans.XMLDecoder
public class XMLDecoder
XMLDecoder reads objects from xml created by XMLEncoder.
The API is similar to ObjectInputStream.
| Constructor Summary | |
|---|---|
XMLDecoder(InputStream inputStream)
Create a decoder to read from specified input stream. |
|
XMLDecoder(InputStream inputStream,
Object owner)
Create a decoder to read from specified input stream. |
|
XMLDecoder(InputStream inputStream,
Object owner,
ExceptionListener listener)
Create a decoder to read from specified input stream. |
|
XMLDecoder(InputStream inputStream,
Object owner,
ExceptionListener listener,
ClassLoader cl)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the input stream of xml data. |
ExceptionListener |
getExceptionListener()
Returns the exception listener. |
Object |
getOwner()
Returns the owner of this decoder. |
Object |
readObject()
Reads the next object. |
void |
setExceptionListener(ExceptionListener listener)
Sets the exception listener. |
void |
setOwner(Object owner)
Sets the owner of this decoder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDecoder(InputStream inputStream)
inputStream - an input stream of xml
public XMLDecoder(InputStream inputStream,
Object owner)
inputStream - an input stream of xmlowner - the owner of this decoder
public XMLDecoder(InputStream inputStream,
Object owner,
ExceptionListener listener)
inputStream - an input stream of xmlowner - the owner of this decoderlistener - listen to the exceptions thrown by the decoder
public XMLDecoder(InputStream inputStream,
Object owner,
ExceptionListener listener,
ClassLoader cl)
| Method Detail |
|---|
public void close()
public ExceptionListener getExceptionListener()
public Object getOwner()
public Object readObject()
ArrayIndexOutOfBoundsException - if no more objects to readpublic void setExceptionListener(ExceptionListener listener)
listener - an exception listenerpublic void setOwner(Object owner)
owner - the owner of this decoder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||