info.sswap.ontologies.data.impl
Class Base64Parser

java.lang.Object
  extended by info.sswap.ontologies.data.impl.Base64Parser
All Implemented Interfaces:
Parser

public class Base64Parser
extends java.lang.Object
implements Parser

Parses an input stream through a base64 decoder.

Author:
Damian Gessler
See Also:
Base64Serializer

Field Summary
static java.net.URI uri
          A marker URN for designating XSD base64 decoding.
static java.net.URI XSDbase64Binary
          The URI of the XSD base64Binary resource
 
Constructor Summary
Base64Parser()
           
 
Method Summary
 java.io.InputStream parse(java.io.InputStream inputStream)
          Method acts as a filter: it is passed an input stream and should return a input stream of parsed data suitable for immediate reading.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

public static final java.net.URI uri
A marker URN for designating XSD base64 decoding. This can be used as the object of the data:hasParser property to designate internally supported base64 decoding.


XSDbase64Binary

public static final java.net.URI XSDbase64Binary
The URI of the XSD base64Binary resource

Constructor Detail

Base64Parser

public Base64Parser()
Method Detail

parse

public java.io.InputStream parse(java.io.InputStream inputStream)
                          throws java.io.IOException
Description copied from interface: Parser
Method acts as a filter: it is passed an input stream and should return a input stream of parsed data suitable for immediate reading.

Specified by:
parse in interface Parser
Parameters:
inputStream - raw (unparsed) stream to be read
Returns:
parsed stream ready for reading
Throws:
java.io.IOException - on any network error


Copyright (c) 2011, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.