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