|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.evolution.utils.configencoder.ConfigDecoder
public class ConfigDecoder
The ConfigDecoder
class is used to read textual documents created using the ConfigEncoder
and is used just like the XMLDecoder
.
XMLDecoder
,
ConfigEncoder
Constructor Summary | |
---|---|
ConfigDecoder(java.io.InputStream in)
Creates a new input stream for reading archives created by the ConfigEncoder class. |
|
ConfigDecoder(java.io.InputStream in,
java.lang.Object owner)
Creates a new input stream for reading archives created by the ConfigEncoder class. |
|
ConfigDecoder(java.io.InputStream in,
java.lang.Object owner,
java.beans.ExceptionListener exceptionListener)
Creates a new input stream for reading archives created by the ConfigEncoder class. |
|
ConfigDecoder(java.io.InputStream in,
java.lang.Object owner,
java.beans.ExceptionListener exceptionListener,
java.lang.ClassLoader cl)
Creates a new input stream for reading archives created by the ConfigEncoder class. |
Method Summary | |
---|---|
void |
close()
This method closes the input stream associated with this stream. |
ClassResolver |
getClassResolver()
|
java.beans.ExceptionListener |
getExceptionListener()
Gets the exception handler for this stream. |
NameConverter |
getNameConverter()
|
java.lang.Object |
getOwner()
Gets the owner of this decoder. |
ValueResolver |
getValueResolver()
|
java.lang.Object |
readObject()
Reads the next object from the underlying input stream. |
void |
setClassResolver(ClassResolver classResolver)
|
void |
setExceptionListener(java.beans.ExceptionListener exceptionListener)
Sets the exception handler for this stream to exceptionListener . |
void |
setNameConverter(NameConverter nameConverter)
|
void |
setOwner(java.lang.Object owner)
Sets the owner of this decoder to owner . |
void |
setValueResolver(ValueResolver valueResolver)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigDecoder(java.io.InputStream in)
ConfigEncoder
class.
in
- The underlying stream.ConfigEncoder.ConfigEncoder(java.io.OutputStream)
public ConfigDecoder(java.io.InputStream in, java.lang.Object owner)
ConfigEncoder
class.
in
- The underlying stream.owner
- The owner of this stream.public ConfigDecoder(java.io.InputStream in, java.lang.Object owner, java.beans.ExceptionListener exceptionListener)
ConfigEncoder
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 ConfigDecoder(java.io.InputStream in, java.lang.Object owner, java.beans.ExceptionListener exceptionListener, java.lang.ClassLoader cl)
ConfigEncoder
class.
in
- the underlying stream. null
may be passed without error, though the
resulting ConfigDecoder 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 usedMethod Detail |
---|
public void close()
public void setExceptionListener(java.beans.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 java.beans.ExceptionListener getExceptionListener()
setExceptionListener(java.beans.ExceptionListener)
public java.lang.Object readObject()
java.lang.ArrayIndexOutOfBoundsException
- if the stream contains no objects (or no more objects)ConfigEncoder.writeObject(java.lang.Object)
public void setOwner(java.lang.Object owner)
owner
.
owner
- The owner of this decoder.getOwner()
public java.lang.Object getOwner()
setOwner(java.lang.Object)
public NameConverter getNameConverter()
public void setNameConverter(NameConverter nameConverter)
public ValueResolver getValueResolver()
public void setValueResolver(ValueResolver valueResolver)
public ClassResolver getClassResolver()
public void setClassResolver(ClassResolver classResolver)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |