class IndexedFidWriter implements FileWriter {

    public void write() throws IOException {
        if (current == -1)
            throw new IOException("Current fid index is null, next must be called before write()");

        if (writeBuffer == null) {
            allocateBuffers();
        }

        if (writeBuffer.remaining() < RECORD_SIZE) {
            drain();
        }

        writeBuffer.putLong(current);
        writeBuffer.putInt(recordIndex);

        recordIndex++;
        current = -1;
    }

    public  IndexedFidWriter( ShpFiles shpFiles );
    public  IndexedFidWriter( ShpFiles shpFiles, StorageFile storageFile );
    private  IndexedFidWriter();

}