Class RandomAccessStream.OutputStreamView

    • Method Detail

      • isCached

        public boolean isCached()
        Description copied from interface: Seekable
        Returns true if this Seekable stream caches data itself in order to allow seeking backwards. Applications may consult this in order to decide how frequently, or whether, to flush in order to conserve cache resources.
        Returns:
        true if this Seekable caches data.
        See Also:
        Seekable.isCachedMemory(), Seekable.isCachedFile()
      • isCachedFile

        public boolean isCachedFile()
        Description copied from interface: Seekable
        Returns true if this Seekable stream caches data itself in order to allow seeking backwards, and the cache is kept in a temporary file. Applications may consult this in order to decide how frequently, or whether, to flush in order to conserve cache resources.
        Returns:
        true if this Seekable caches data in a temporary file.
        See Also:
        Seekable.isCached(), Seekable.isCachedMemory()
      • isCachedMemory

        public boolean isCachedMemory()
        Description copied from interface: Seekable
        Returns true if this Seekable stream caches data itself in order to allow seeking backwards, and the cache is kept in main memory. Applications may consult this in order to decide how frequently, or whether, to flush in order to conserve cache resources.
        Returns:
        true if this Seekable caches data in main memory.
        See Also:
        Seekable.isCached(), Seekable.isCachedFile()
      • closeImpl

        protected void closeImpl()
                          throws java.io.IOException
        Specified by:
        closeImpl in class SeekableOutputStream
        Throws:
        java.io.IOException
      • flushBeforeImpl

        protected void flushBeforeImpl​(long pPosition)
                                throws java.io.IOException
        Specified by:
        flushBeforeImpl in class SeekableOutputStream
        Throws:
        java.io.IOException
      • seekImpl

        protected void seekImpl​(long pPosition)
                         throws java.io.IOException
        Specified by:
        seekImpl in class SeekableOutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(int pByte)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] pBytes,
                          int pOffset,
                          int pLength)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException