Class WritableByteChannelDecorator
- Object
- 
- WritableByteChannelDecorator
 
- 
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Channel,- WritableByteChannel
 
 public class WritableByteChannelDecorator extends Object implements WritableByteChannel A WritableByteChannel that delegates all calls to the underlying WritableByteChannel but forclose()it also calls ShapefileFiles.unlock method to release the lock on the URL.- Author:
- jesse
 
- 
- 
Constructor SummaryConstructors Constructor Description WritableByteChannelDecorator(WritableByteChannel newChannel, ShpFiles shapefileFiles, URL url, FileWriter requestor)
 
- 
- 
- 
Constructor Detail- 
WritableByteChannelDecoratorpublic WritableByteChannelDecorator(WritableByteChannel newChannel, ShpFiles shapefileFiles, URL url, FileWriter requestor) 
 
- 
 - 
Method Detail- 
writepublic int write(ByteBuffer src) throws IOException - Specified by:
- writein interface- WritableByteChannel
- Throws:
- IOException
 
 - 
closepublic void close() throws IOException- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Channel
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
 
- 
 
-