|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tagtraum.sixbs.SIXBSReader
DeSerializes beans from XML. Objects are read asynchronously therefore excellent performance is ensured. How many objects are read ahead, can be specified - you should do this, if you are intending to read many, or very large objects. Also, if speed is very important to you, you should buffer the InputStream or Reader (if this is not done by your SAX2 parser) and set readAhead to a high value.
SIXBSWriter
Field Summary | |
static java.lang.String |
DEFAULTVERSION
|
static java.lang.String |
vcid
Source-Version |
Constructor Summary | |
SIXBSReader(java.io.InputStream in)
|
|
SIXBSReader(java.io.InputStream in,
java.lang.String defaultVersion)
Deserializes from an XML document using the given sixbs version if no version is specified in the document itself. |
|
SIXBSReader(java.io.Reader in)
|
|
SIXBSReader(java.io.Reader in,
java.lang.String defaultVersion)
Deserializes from an XML document using the given sixbs version if no version is specified in the document itself. |
Method Summary | |
void |
close()
Closes this reader. |
protected void |
finalize()
|
java.lang.String |
getDefaultVersion()
Returns the default sixbs version that should be used for parsing. |
int |
getReadAhead()
Returns the number of Objects that are read in advance. |
java.lang.String |
getVersion()
Returns the actually used version. |
boolean |
hasNext()
Indicates whether we can read another object. |
java.lang.Object |
readObject()
Starts the reading of objects. |
void |
setReadAhead(int readAhead)
Sets the number of Objects which are read in advance. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String vcid
public static java.lang.String DEFAULTVERSION
Constructor Detail |
public SIXBSReader(java.io.Reader in) throws java.io.IOException
public SIXBSReader(java.io.InputStream in) throws java.io.IOException
public SIXBSReader(java.io.Reader in, java.lang.String defaultVersion) throws java.io.IOException
public SIXBSReader(java.io.InputStream in, java.lang.String defaultVersion) throws java.io.IOException
Method Detail |
public java.lang.String getDefaultVersion()
public java.lang.String getVersion()
public void setReadAhead(int readAhead)
getReadAhead()
public int getReadAhead()
setReadAhead(int)
public java.lang.Object readObject() throws java.io.IOException
java.io.EOFException
- if the end of file is reached.
java.io.IOException
setReadAhead(int)
public boolean hasNext()
public void close()
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |