Esri Geoportal Server
1.2.9

com.esri.gpt.framework.dcat
Class DcatParser

java.lang.Object
  extended by com.esri.gpt.framework.dcat.DcatParser

public class DcatParser
extends Object

DCAT parser.


Nested Class Summary
static interface DcatParser.LimitPolicy
          Limit policy.
static interface DcatParser.Listener
          Record listener.
 
Constructor Summary
DcatParser(InputStream input)
          Creates instance of the parser.
DcatParser(Reader reader)
          Creates instance of the parser.
 
Method Summary
 void close()
          Closes parser.
 DcatVersion getDcatVersion()
          Gets parsed DCAT version.
 DcatRecordList parse(DcatParser.LimitPolicy policy)
          Parses data (DOM building style).
 void parse(DcatParser.Listener listener)
          Parses data (event driven style).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DcatParser

public DcatParser(InputStream input)
           throws IOException
Creates instance of the parser.

Parameters:
input - input stream to parse
Throws:
IOException - if error reading stream

DcatParser

public DcatParser(Reader reader)
Creates instance of the parser.

Parameters:
reader - data reader
Method Detail

getDcatVersion

public DcatVersion getDcatVersion()
Gets parsed DCAT version.

Returns:
version

close

public void close()
           throws IOException
Closes parser.

Throws:
IOException - if error closing reader

parse

public void parse(DcatParser.Listener listener)
           throws DcatParseException,
                  IOException
Parses data (event driven style).

Parameters:
listener - event listener
Throws:
DcatParseException - if parsing fails
IOException - if error reading stream

parse

public DcatRecordList parse(DcatParser.LimitPolicy policy)
                     throws DcatParseException,
                            IOException
Parses data (DOM building style).

Parameters:
policy - limit policy
Returns:
list of records.
Throws:
DcatParseException - if parsing fails
IOException - if error reading stream

Esri Geoportal Server
1.2.9

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