|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.testdoc.core.adapter.PersistenceUtils
public final class PersistenceUtils
Provides means to persist the state of collected test documentation information.
Constructor Summary | |
---|---|
PersistenceUtils() |
Method Summary | |
---|---|
Object |
deserialize(File file) Deserializes a single object from the given file. |
Object |
deserialize(FileObject file) Deserializes a single object from the given file. |
Object |
deserialize(InputStream in) Deserializes a single object from the given stream. |
void |
serialize(Object instance, FileObject file) Serializes the instance to the given file. |
void |
serialize(Object instance, OutputStream out) Serializes the index. |
void |
serialize(UnitTestDoc testDoc, File file) Serializes the test doc instance to the given file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PersistenceUtils()
Method Detail |
---|
public void serialize(Object instance, OutputStream out) throws IllegalStateException
instance
- the instance to serialize.
out
- the stream to write to.
IllegalStateException
- if the index cannot be serialized.
public void serialize(Object instance, FileObject file) throws IllegalStateException
instance
- the instance to serialize.
file
- the file to write to.
IllegalStateException
- if the index cannot be serialized.
public void serialize(UnitTestDoc testDoc, File file) throws IllegalStateException
testDoc
- the instance to serialize.
file
- the file to write to.
IllegalStateException
- if the index cannot be serialized.
public Object deserialize(InputStream in)
in
- the stream to read from.
public Object deserialize(File file)
file
- the file to read from.
public Object deserialize(FileObject file)
file
- the file to read from.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |