org.geotools.data.shapefile.files
Class ReadableByteChannelDecorator
Object
ReadableByteChannelDecorator
- All Implemented Interfaces:
- Closeable, Channel, ReadableByteChannel
public class ReadableByteChannelDecorator
- extends Object
- implements 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
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadableByteChannelDecorator
public ReadableByteChannelDecorator(ReadableByteChannel newChannel,
ShpFiles shapefileFiles,
URL url,
FileReader requestor)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in interface Channel
- Throws:
IOException
isOpen
public boolean isOpen()
- Specified by:
isOpen
in interface Channel
read
public int read(ByteBuffer dst)
throws IOException
- Specified by:
read
in interface ReadableByteChannel
- Throws:
IOException
Copyright © 1996-2014 Geotools. All Rights Reserved.