org.geotools.data
Class JoiningAttributeReader

java.lang.Object
  extended byorg.geotools.data.JoiningAttributeReader
All Implemented Interfaces:
AttributeReader

public class JoiningAttributeReader
extends java.lang.Object
implements AttributeReader

Attribute Reader that joins.

Version:
$Id: JoiningAttributeReader.java 17701 2006-01-23 00:00:51Z desruisseaux $
Author:
Ian Schneider

Constructor Summary
JoiningAttributeReader(AttributeReader[] readers)
          Creates a new instance of JoiningAttributeReader
 
Method Summary
 void close()
          Release any resources associated with this reader
 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()
          Does another set of attributes exist in this reader?
 void next()
          Advance the reader to the next set of attributes.
 java.lang.Object read(int idx)
          Read the attribute at the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 java.io.IOException
Description copied from interface: AttributeReader
Release any resources associated with this reader

Specified by:
close in interface AttributeReader
Throws:
java.io.IOException

hasNext

public boolean hasNext()
                throws java.io.IOException
Description copied from interface: AttributeReader
Does another set of attributes exist in this reader?

Specified by:
hasNext in interface AttributeReader
Returns:
true if additional content exists for AttributeReader
Throws:
java.io.IOException

next

public void next()
          throws java.io.IOException
Description copied from interface: AttributeReader
Advance the reader to the next set of attributes.

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

read

public java.lang.Object read(int idx)
                      throws java.io.IOException
Description copied from interface: AttributeReader
Read the attribute at the given index.

Specified by:
read in interface AttributeReader
Returns:
Object Attribute at given index
Throws:
java.io.IOException

getAttributeCount

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

Specified by:
getAttributeCount in interface AttributeReader
Returns:
Number of attribtues this reader can read

getAttributeType

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

Specified by:
getAttributeType in interface AttributeReader
Returns:
AttributeType at given index


Copyright © GeoTools. All Rights Reserved.