|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.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 String |
DEFAULTVERSION
|
static String |
vcid
Source-Version |
| Constructor Summary | |
SIXBSReader(InputStream in)
|
|
SIXBSReader(InputStream in,
String defaultVersion)
Deserializes from an XML document using the given sixbs version if no version is specified in the document itself. |
|
SIXBSReader(Reader in)
|
|
SIXBSReader(Reader in,
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()
|
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. |
boolean |
getValidating()
Indicates whether validating is turned on. |
String |
getVersion()
Returns the actually used version. |
boolean |
hasNext()
Indicates whether we can read another object. |
Object |
readObject()
Starts the reading of objects. |
void |
setReadAhead(int readAhead)
Sets the number of Objects which are read in advance. |
void |
setValidating(boolean validating)
Turns on validating. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String vcid
public static String DEFAULTVERSION
| Constructor Detail |
public SIXBSReader(Reader in)
throws IOException
public SIXBSReader(InputStream in)
throws IOException
public SIXBSReader(Reader in,
String defaultVersion)
throws IOException
public SIXBSReader(InputStream in,
String defaultVersion)
throws IOException
| Method Detail |
public boolean getValidating()
setValidating(boolean)public void setValidating(boolean validating)
append
option in SIXBSWriter.
getValidating()public String getDefaultVersion()
public String getVersion()
public void setReadAhead(int readAhead)
getReadAhead()public int getReadAhead()
setReadAhead(int)
public Object readObject()
throws IOException
EOFException - if the end of file is reached.
IOExceptionsetReadAhead(int)public boolean hasNext()
public void close()
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||