org.geotools.data
Class JoiningAttributeReader

Object
  extended by JoiningAttributeReader
All Implemented Interfaces:
AttributeReader

public class JoiningAttributeReader
extends Object
implements AttributeReader

Attribute Reader that joins.

Author:
Ian Schneider
Module:
modules/library/main (gt-main.jar)

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.
 AttributeDescriptor 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.
 Object read(int idx)
          Read the attribute at the given index.
 
Methods inherited from class 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 IOException
Description copied from interface: AttributeReader
Release any resources associated with this reader

Specified by:
close in interface AttributeReader
Throws:
IOException

hasNext

public boolean hasNext()
                throws 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:
IOException

next

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

Specified by:
next in interface AttributeReader
Throws:
IOException

read

public Object read(int idx)
            throws 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:
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 AttributeDescriptor 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 © 1996-2009 Geotools. All Rights Reserved.