Class TFileTransport

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

    public class TFileTransport
    extends TTransport
    FileTransport implementation of the TTransport interface. Currently this is a straightforward port of the cpp implementation It may make better sense to provide a basic stream access on top of the framed file format The FileTransport can then be a user of this framed file format with some additional logic for chunking.
    • Field Detail

      • inputFile_

        protected TSeekableFile inputFile_
        Underlying file being read
      • outputStream_

        protected java.io.OutputStream outputStream_
        Underlying outputStream
    • Constructor Detail

      • TFileTransport

        public TFileTransport​(java.lang.String path,
                              boolean readOnly)
                       throws java.io.IOException
        File Transport ctor
        Parameters:
        path - File path to read and write from
        readOnly - Whether this is a read-only transport
        Throws:
        java.io.IOException - if there is an error accessing the file.
      • TFileTransport

        public TFileTransport​(TSeekableFile inputFile,
                              boolean readOnly)
        File Transport ctor
        Parameters:
        inputFile - open TSeekableFile to read/write from
        readOnly - Whether this is a read-only transport