Documentation of 'org.hsqldb.lib.tar.PIFGenerator' Java class
PIFGenerator
org.hsqldb.lib.tar

Class PIFGenerator

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable


    public class PIFGenerator
    extends java.io.ByteArrayOutputStream
    Encapsulates Pax Interchange Format key/value pairs.
    • Constructor Summary

      Constructors 
      Constructor and Description
      PIFGenerator(java.io.File file)
      Construct a PIFGenerator object for a 'x' record.
      PIFGenerator(int sequenceNum)
      Construct a PIFGenerator object for a 'g' record.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addRecord(java.lang.String key, boolean b)
      Convenience wrapper for addRecord(String, String).
      void addRecord(java.lang.String key, int i)
      Convenience wrapper for addRecord(String, String).
      void addRecord(java.lang.String key, long l)
      Convenience wrapper for addRecord(String, String).
      void addRecord(java.lang.String key, java.lang.String value)
      I guess the "initial length" field is supposed to be in units of characters, not bytes?
      java.lang.String getName() 
      • Methods inherited from class java.io.ByteArrayOutputStream

        close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
      • Methods inherited from class java.io.OutputStream

        flush, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PIFGenerator

        public PIFGenerator(int sequenceNum)
        Construct a PIFGenerator object for a 'g' record.
        Parameters:
        sequenceNum - Index starts at 1 in each Tar file
      • PIFGenerator

        public PIFGenerator(java.io.File file)
        Construct a PIFGenerator object for a 'x' record.
        Parameters:
        file - Target file of the x record.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.