java.lang.Object
org.sejda.io.BaseSeekableSource
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel,SeekableSource
- Direct Known Subclasses:
ByteArraySeekableSource,FileChannelSeekableSource,MemoryMappedSeekableSource
Abstract
SeekableSource that provides base functionalities common to all the SeekableSources.- Author:
- Andrea Vacondio
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.nio.channels.ReadableByteChannel
readMethods inherited from interface org.sejda.io.SeekableSource
asInputStream, asNewInputStream, back, back, forward, peek, peekBack, position, position, read, reset, size, view
-
Constructor Details
-
BaseSeekableSource
-
-
Method Details
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
requireOpen
- Specified by:
requireOpenin interfaceSeekableSource- Throws:
IOException
-
id
- Specified by:
idin interfaceSeekableSource- Returns:
- the unique id for this source
-