Project

General

Profile

Download (740 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.io.stream;
10

    
11
/**
12
 * @author a.mueller
13
 \* @since 23.11.2011
14
 *
15
 */
16
public interface IReader<TYPE extends Object> extends IConverterOutput<IReader<TYPE>>{
17

    
18
	/**
19
	 * Returns the next Object of this reader.
20
	 * Returns <code>null</code> if no object is left.
21
	 * @return
22
	 */
23
	public TYPE read();
24
	
25
	/**
26
	 * Checks the availablity of a next object in the stream.
27
	 * @return True if there is a next object, false otherwise.
28
	 */
29
	boolean hasNext();
30
	
31
	
32
}
(11-11/21)