Packages

object CodecStreams

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CodecStreams
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def createInputStream(config: Configuration, file: Path): InputStream
  2. def createInputStreamWithCloseResource(config: Configuration, path: Path): InputStream

    Creates an input stream from the given path and add a closure for the input stream to be closed on task completion.

  3. def createOutputStream(context: JobContext, file: Path): OutputStream

    Create a new file and open it for writing.

    Create a new file and open it for writing. If compression is enabled in the JobContext the stream will write compressed data to disk. An exception will be thrown if the file already exists.

  4. def createOutputStreamWriter(context: JobContext, file: Path, charset: Charset = StandardCharsets.UTF_8): OutputStreamWriter
  5. def getCompressionExtension(context: JobContext): String

    Returns the compression codec extension to be used in a file name, e.g.

    Returns the compression codec extension to be used in a file name, e.g. ".gzip").