public String next() throws IOException { if (closed) throw new IllegalStateException("Reader is closed"); //$NON-NLS-1$ i++; return typename + tracker.getRecordNumber(); }
public void close() throws IOException { try { if (buffer != null) { NIOUtilities.clean(buffer, false); } if (reader != null) { reader.close(); } } finally { buffer = null; reader = null; readChannel.close(); streamLogger.close(); } }
public void close() throws IOException { try { if( buffer!=null ){ if( buffer instanceof MappedByteBuffer ){ NIOUtilities.clean(buffer); } } if (reader != null) reader.close(); } finally { readChannel.close(); streamLogger.close(); } }
public String next() throws IOException { if (closed) throw new IllegalStateException("Reader is closed"); //$NON-NLS-1$ i++; return typename + tracker.getRecordNumber(); }
public void close() throws IOException { try { if (buffer != null) { NIOUtilities.clean(buffer, false); } if (reader != null) { reader.close(); } } finally { buffer = null; reader = null; readChannel.close(); streamLogger.close(); } }
public String next() throws IOException { if (reader != null) { goTo(reader.getRecordNumber() - 1); } if (!hasNext()) { throw new NoSuchElementException( "Feature could not be read; a the index may be invalid"); } currentId = buffer.getLong(); currentShxIndex = buffer.getInt(); fidBuilder.setLength(typeName.length()); fidBuilder.append(currentId); return fidBuilder.toString(); }
public String next() throws IOException { if (reader != null) { goTo(reader.getRecordNumber() - 1); } if (!hasNext()) { throw new NoSuchElementException(); } currentId = buffer.getLong(); currentShxIndex = buffer.getInt(); return typeName + currentId; }
public String next() throws IOException { if (reader != null) { goTo(reader.getRecordNumber() - 1); } if (!hasNext()) { throw new NoSuchElementException( "Feature could not be read; a the index may be invalid"); } currentId = buffer.getLong(); currentShxIndex = buffer.getInt(); fidBuilder.setLength(typeName.length()); fidBuilder.append(currentId); return fidBuilder.toString(); }