Class WritableByteChannelDecorator
Object
WritableByteChannelDecorator
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
A WritableByteChannel that delegates all calls to the underlying WritableByteChannel but for
close() it also
calls ShapefileFiles.unlock method to release the lock on the URL.- Author:
- jesse
-
Constructor Summary
ConstructorsConstructorDescriptionWritableByteChannelDecorator(WritableByteChannel newChannel, ShpFiles shapefileFiles, URL url, FileWriter requestor) -
Method Summary
-
Constructor Details
-
WritableByteChannelDecorator
public WritableByteChannelDecorator(WritableByteChannel newChannel, ShpFiles shapefileFiles, URL url, FileWriter requestor)
-
-
Method Details
-
write
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
isOpen
public boolean isOpen()
-