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:
write
in interfaceWritableByteChannel
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceChannel
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
isOpen
public boolean isOpen()
-