Class ReadableByteChannelDecorator
Object
ReadableByteChannelDecorator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Channel
,ReadableByteChannel
A ReadableByteChannel that delegates all calls to the underlying ReadableByteChannel but for
close()
it also
calls ShapefileFiles.unlock method to release the lock on the URL.- Author:
- jesse
-
Constructor Summary
ConstructorsConstructorDescriptionReadableByteChannelDecorator
(ReadableByteChannel newChannel, ShpFiles shapefileFiles, URL url, FileReader requestor) -
Method Summary
-
Constructor Details
-
ReadableByteChannelDecorator
public ReadableByteChannelDecorator(ReadableByteChannel newChannel, ShpFiles shapefileFiles, URL url, FileReader requestor)
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
isOpen
public boolean isOpen() -
read
- Specified by:
read
in interfaceReadableByteChannel
- Throws:
IOException
-