Package org.robwork.sdurw_common
Class Archive
- java.lang.Object
-
- org.robwork.sdurw_common.Archive
-
- Direct Known Subclasses:
InputArchive,OutputArchive
public class Archive extends java.lang.Objectarchive interface for serializaion classes.
-
-
Constructor Summary
Constructors Constructor Description Archive(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()close the archive.voiddelete()voidflush()flush the archive.static longgetCPtr(Archive obj)booleanisOpen()test if this archive is openned for manipulation.voidopen(java.lang.String filename)open file for reading and writingvoidopen(SWIGTYPE_p_std__iostream stream)initialize archive for reading and/or writing to a streamvoidopen(SWIGTYPE_p_std__istream ifs)open an inputstream for readingvoidopen(SWIGTYPE_p_std__ostream ofs)open an output stream for writing
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(Archive obj)
-
delete
public void delete()
-
open
public void open(java.lang.String filename)
open file for reading and writing- Parameters:
filename-
-
open
public void open(SWIGTYPE_p_std__iostream stream)
initialize archive for reading and/or writing to a stream- Parameters:
stream- [in] the stream
-
open
public void open(SWIGTYPE_p_std__ostream ofs)
open an output stream for writing
-
open
public void open(SWIGTYPE_p_std__istream ifs)
open an inputstream for reading
-
isOpen
public boolean isOpen()
test if this archive is openned for manipulation. If this is false then
no storage will be performed.- Returns:
- true if Archive is ready for streaming
-
close
public void close()
close the archive.
-
flush
public void flush()
flush the archive. Anything stored in buffers will be flushed to the
actual media that has been openned.
-
-