Esri Geoportal Server
1.2.9

com.esri.gpt.framework.dcat
Class DcatParserAdaptor

java.lang.Object
  extended by com.esri.gpt.framework.dcat.DcatParserAdaptor
All Implemented Interfaces:
Iterable<DcatRecord>

public class DcatParserAdaptor
extends Object
implements Iterable<DcatRecord>

DCAT parser adaptor.

It allows to wrap DcatParser parser so instead having 'event paradigm' based mechanism, an 'iterator paradigm' could be used.


Constructor Summary
DcatParserAdaptor(DcatParser parser)
          Creates instance of the adaptor.
 
Method Summary
 void close()
          Closes adaptor.
 DcatVersion getDcatVersion()
          Gets parsed DCAT version.
 Iterator<DcatRecord> iterator()
           
protected  void onException(Exception ex)
          Called upon parsing exception thrown during iteration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DcatParserAdaptor

public DcatParserAdaptor(DcatParser parser)
Creates instance of the adaptor.

Parameters:
parser - parser
Method Detail

getDcatVersion

public DcatVersion getDcatVersion()
Gets parsed DCAT version.

Returns:
version

close

public void close()
Closes adaptor.

It also closes underlying parser. This method is called either by the user of the adaptor or it will be called automatically if iteration reaches the end. Subsequential calls to the method will not case any adverse effects.


onException

protected void onException(Exception ex)
Called upon parsing exception thrown during iteration.

Parameters:
ex -

iterator

public Iterator<DcatRecord> iterator()
Specified by:
iterator in interface Iterable<DcatRecord>

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.