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.Object
archive 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 void
close()
close the archive.void
delete()
void
flush()
flush the archive.static long
getCPtr(Archive obj)
boolean
isOpen()
test if this archive is openned for manipulation.void
open(java.lang.String filename)
open file for reading and writingvoid
open(SWIGTYPE_p_std__iostream stream)
initialize archive for reading and/or writing to a streamvoid
open(SWIGTYPE_p_std__istream ifs)
open an inputstream for readingvoid
open(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.
-
-