|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.5.0
java.beans
|
||||||||||||||||||||||||
| Constructor Summary | |
|---|---|
XMLDecoder(InputStream in)
Creates a new input stream for reading archives created by the XMLEncoder class. |
|
XMLDecoder(InputStream in,
Object owner)
Creates a new input stream for reading archives created by the XMLEncoder class. |
|
XMLDecoder(InputStream in,
Object owner,
ExceptionListener exceptionListener)
Creates a new input stream for reading archives created by the XMLEncoder class. |
|
XMLDecoder(InputStream in,
Object owner,
ExceptionListener exceptionListener,
ClassLoader cl)
Creates a new input stream for reading archives created by the XMLEncoder class. |
|
| Method Summary | |
|---|---|
void |
close()
This method closes the input stream associated with this stream. |
ExceptionListener |
getExceptionListener()
Gets the exception handler for this stream. |
Object |
getOwner()
Gets the owner of this decoder. |
Object |
readObject()
Reads the next object from the underlying input stream. |
void |
setExceptionListener(ExceptionListener exceptionListener)
Sets the exception handler for this stream to exceptionListener. |
void |
setOwner(Object owner)
Sets the owner of this decoder to owner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLDecoder(InputStream in)
XMLEncoder class.
in - The underlying stream.XMLEncoder.XMLEncoder(OutputStream)public XMLDecoder(InputStream in, Object owner)
XMLEncoder class.
in - The underlying stream.owner - The owner of this stream.public XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener)
XMLEncoder class.
in - the underlying stream.owner - the owner of this stream.exceptionListener - the exception handler for the stream;
if null the default exception listener will be used.public XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener, ClassLoader cl)
XMLEncoder class.
in - the underlying stream. null may be passed without
error, though the resulting XMLDecoder will be uselessowner - the owner of this stream. null is a legal
valueexceptionListener - the exception handler for the stream, or
null to use the defaultcl - the class loader used for instantiating objects.
null indicates that the default class loader should
be used| Method Detail |
|---|
public void close()
public void setExceptionListener(ExceptionListener exceptionListener)
exceptionListener.
The exception handler is notified when this stream catches recoverable
exceptions.
exceptionListener - The exception handler for this stream;
if null the default exception listener will be used.getExceptionListener()public ExceptionListener getExceptionListener()
setExceptionListener(java.beans.ExceptionListener)public Object readObject()
ArrayIndexOutOfBoundsException - if the stream contains no objects
(or no more objects)XMLEncoder.writeObject(java.lang.Object)public void setOwner(Object owner)
owner.
owner - The owner of this decoder.getOwner()public Object getOwner()
setOwner(java.lang.Object)