Class SeekableInMemoryByteChannel

    • Field Detail

      • contents

        protected byte[] contents
    • Constructor Detail

      • SeekableInMemoryByteChannel

        public SeekableInMemoryByteChannel​(int capacity)
      • SeekableInMemoryByteChannel

        public SeekableInMemoryByteChannel()
    • Method Detail

      • isOpen

        public boolean isOpen()
        Specified by:
        isOpen in interface Channel
      • position

        public long position()
        Specified by:
        position in interface org.uberfire.java.nio.channels.SeekableByteChannel
      • position

        public org.uberfire.java.nio.channels.SeekableByteChannel position​(long newPosition)
        Specified by:
        position in interface org.uberfire.java.nio.channels.SeekableByteChannel
      • size

        public long size()
        Specified by:
        size in interface org.uberfire.java.nio.channels.SeekableByteChannel
      • truncate

        public org.uberfire.java.nio.channels.SeekableByteChannel truncate​(long size)
        Specified by:
        truncate in interface org.uberfire.java.nio.channels.SeekableByteChannel