Package com.oss.asn1

Interface ObjectWriter<T>

Type Parameters:
T - type of objects in the object storage.
All Superinterfaces:
AutoCloseable, Closeable

public interface ObjectWriter<T> extends Closeable
The ObjectWriter interface specifies the functionality to put objects to an ObjectStore.
Since:
ASN.1/Java 1.4 beta A
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Terminate the writer and release any internal resources that are in use.
    void
    Append the object to the storage.
  • Method Details

    • writeObject

      void writeObject(T obj) throws StorageException
      Append the object to the storage. The writeObject puts a copy of the parameter in storage. Changes to the variable passed as a parameter after writeObject occurs will not have an effect on object in storage.
      Parameters:
      obj - the object to append to the storage.
      Throws:
      StorageException - if any error occurs when writing the new object to the storage.
    • close

      void close() throws StorageException
      Terminate the writer and release any internal resources that are in use.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      StorageException - if any error occurs when terminating the writer.