Object/Class

org.apache.daffodil.io

ByteBufferDataInputStream

Related Docs: class ByteBufferDataInputStream | package io

Permalink

object ByteBufferDataInputStream

Factory for creating this type of DataInputStream

Examines channels and input streams to see if they are associated to files. If so it memory maps the file.

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(channel: ReadableByteChannel, initialBitPos0b: Long): ByteBufferDataInputStream

    Permalink

    If it's a file channel, mmap it.

    If it's a file channel, mmap it. Otherwise treat like an InputStream

  5. def apply(in: InputStream, initialBitPos0b: Long): ByteBufferDataInputStream

    Permalink

    If it is a FileInputStream, get its channel so we can mmap it.

    If it is a FileInputStream, get its channel so we can mmap it. Otherwise copy into a byte array.

  6. def apply(file: File, initialBitPos0b: Long): ByteBufferDataInputStream

    Permalink

    File becomes a direct mapped byte buffer.

  7. def apply(byteArray: Array[Byte], initialBitPos0b: Long = 0): ByteBufferDataInputStream

    Permalink

    Mostly this is for unit testing

  8. def apply(byteBuffer: ByteBuffer, initialBitPos0b: Long): ByteBufferDataInputStream

    Permalink

    This is the only method that actually constructs the object.

    This is the only method that actually constructs the object. The other methods just arrange to call this one.

    The initialBitPos0b is mostly there for testing purposes - to create small unit tests that start with non-byte alignment and such.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def defaultCodingErrorAction: CodingErrorAction

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromByteChannel(in: ReadableByteChannel, bitStartPos0b: Long, numBitsLimit: Long): ByteBufferDataInputStream

    Permalink
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped