Class TxtFileReaderPipe

    • Constructor Detail

      • TxtFileReaderPipe

        public TxtFileReaderPipe​(FailableInterruptibleSupplier<SizedInputStream,​IOException> isCreator,
                                 Charset charset,
                                 int bufferSizeBytes,
                                 Compression compression)
        Constructor
        Parameters:
        isCreator - The creator of the stream to read from. Expected to be the raw input stream (without decompression or buffering layers), but should be initialized with expected size (see SizedInputStream). The size should be either null if unknown, or it should be the exact number of stream bytes.
        charset - The charset to use
        bufferSizeBytes - The requires buffer size
        compression - Compression type
      • TxtFileReaderPipe

        public TxtFileReaderPipe​(SizedInputStream is,
                                 Charset charset,
                                 int bufferSizeBytes,
                                 Compression compression)
        Constructor
        Parameters:
        is - The input stream to read from. Expected to be the raw input stream (without decompression or buffering layers).
        charset - The charset to use
        bufferSizeBytes - The requires buffer size
        compression - Compression type
      • TxtFileReaderPipe

        public TxtFileReaderPipe​(File f,
                                 Charset charset,
                                 FileReadOptions options)
        Constructor
        Parameters:
        f - The text file to read from
        charset - The charset to use
        options - The file reading options
      • TxtFileReaderPipe

        public TxtFileReaderPipe​(File f,
                                 Charset charset)
        Constructor Detects the compression type by the filename extension
        Parameters:
        f - The text file to read from. Compression is inferred from file extension.
        charset - The charset to use
      • TxtFileReaderPipe

        public TxtFileReaderPipe​(File f)
        Constructor Detects the compression type by the filename extension
        Parameters:
        f - The text file to read from. Assumed to be UTF8. Compression is inferred from file extension
      • TxtFileReaderPipe

        public TxtFileReaderPipe​(File f,
                                 FileReadOptions options)
        Constructor
        Parameters:
        f - The text file to read from. Assumed to be UTF8.
        options - The file reading options