Package org.geotools.data
Class JoiningAttributeReader
- Object
-
- JoiningAttributeReader
-
- All Implemented Interfaces:
AttributeReader
public class JoiningAttributeReader extends Object implements AttributeReader
Attribute Reader that joins.- Author:
- Ian Schneider
-
-
Constructor Summary
Constructors Constructor Description JoiningAttributeReader(AttributeReader... readers)Creates a new instance of JoiningAttributeReader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Release any resources associated with this readerintgetAttributeCount()The number of attributes this reader can read, i.e the length of a row.AttributeDescriptorgetAttributeType(int i)Retrieve the AttributeType at the given index.booleanhasNext()Does another set of attributes exist in this reader?voidnext()Advance the reader to the next set of attributes.Objectread(int idx)Read the attribute at the given index.
-
-
-
Constructor Detail
-
JoiningAttributeReader
public JoiningAttributeReader(AttributeReader... readers)
Creates a new instance of JoiningAttributeReader- Parameters:
readers- Readers to join
-
-
Method Detail
-
close
public void close() throws IOExceptionDescription copied from interface:AttributeReaderRelease any resources associated with this reader- Specified by:
closein interfaceAttributeReader- Throws:
IOException
-
hasNext
public boolean hasNext() throws IOExceptionDescription copied from interface:AttributeReaderDoes another set of attributes exist in this reader?- Specified by:
hasNextin interfaceAttributeReader- Returns:
trueif additional content exists for AttributeReader- Throws:
IOException
-
next
public void next() throws IOExceptionDescription copied from interface:AttributeReaderAdvance the reader to the next set of attributes.- Specified by:
nextin interfaceAttributeReader- Throws:
IOException
-
read
public Object read(int idx) throws IOException
Description copied from interface:AttributeReaderRead the attribute at the given index.- Specified by:
readin interfaceAttributeReader- Returns:
- Object Attribute at given index
- Throws:
IOException
-
getAttributeCount
public int getAttributeCount()
Description copied from interface:AttributeReaderThe number of attributes this reader can read, i.e the length of a row.- Specified by:
getAttributeCountin interfaceAttributeReader- Returns:
- Number of attribtues this reader can read
-
getAttributeType
public AttributeDescriptor getAttributeType(int i)
Description copied from interface:AttributeReaderRetrieve the AttributeType at the given index.- Specified by:
getAttributeTypein interfaceAttributeReader- Returns:
- AttributeType at given index
-
-