Class Archive

  • Direct Known Subclasses:
    InputArchive, OutputArchive

    public class Archive
    extends java.lang.Object
    archive interface for serializaion classes.
    • Constructor Detail

      • Archive

        public Archive​(long cPtr,
                       boolean cMemoryOwn)
    • 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
      • 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.