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,v 1.2 2003/11/04 00:28:50 cholmesny Exp $
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 © 1996-2003 GeoTools. All Rights Reserved.