org.geotools.data
Class JoiningAttributeWriter

java.lang.Object
  extended byorg.geotools.data.JoiningAttributeWriter
All Implemented Interfaces:
AttributeWriter

public class JoiningAttributeWriter
extends java.lang.Object
implements AttributeWriter

Provides ...

Author:
Sean Geoghegan, Defence Science and Technology Organisation.

Constructor Summary
JoiningAttributeWriter(AttributeWriter[] writers)
           
 
Method Summary
 void close()
           
 int getAttributeCount()
          The number of attributes this reader can read, i.e the length of a row.
 AttributeType getAttributeType(int i)
          Retrieve the AttributeType at the given index.
 boolean hasNext()
          Query whether there are other rows in the attribute writer.
 void next()
          Advance the AttributeWriter, all calls to write will correspond to the same set of attributes until next is called again.
 void write(int position, java.lang.Object attribute)
          Write the given attribute value at the position indicated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoiningAttributeWriter

public JoiningAttributeWriter(AttributeWriter[] writers)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface AttributeWriter
Throws:
java.io.IOException

hasNext

public boolean hasNext()
                throws java.io.IOException
Description copied from interface: AttributeWriter
Query whether there are other rows in the attribute writer.

Specified by:
hasNext in interface AttributeWriter
Returns:
Throws:
java.io.IOException
See Also:
FeatureWriter.hasNext()

next

public void next()
          throws java.io.IOException
Description copied from interface: AttributeWriter
Advance the AttributeWriter, all calls to write will correspond to the same set of attributes until next is called again.

Specified by:
next in interface AttributeWriter
Throws:
java.io.IOException

write

public void write(int position,
                  java.lang.Object attribute)
           throws java.io.IOException
Description copied from interface: AttributeWriter
Write the given attribute value at the position indicated. Implementations can choose to immediately flush the write or buffer it.

Specified by:
write in interface AttributeWriter
Throws:
java.io.IOException

getAttributeCount

public int getAttributeCount()
Description copied from interface: AttributeWriter
The number of attributes this reader can read, i.e the length of a row.

Specified by:
getAttributeCount in interface AttributeWriter

getAttributeType

public AttributeType getAttributeType(int i)
Description copied from interface: AttributeWriter
Retrieve the AttributeType at the given index.

Specified by:
getAttributeType in interface AttributeWriter


Copyright © 1996-2003 GeoTools. All Rights Reserved.