gov.nasa.pds.transport
Class LabelReader

java.lang.Object
  extended by gov.nasa.pds.transport.LabelReader

public class LabelReader
extends Object

Class that reads a PDS label into a string buffer. The actual parsing of the label is delegated to the PDS product-tools package. Each LabelReader instance can be used only once.

Author:
Luca Cinquini

Constructor Summary
LabelReader(URI uri, String indent)
          Constructor reads the label into the private string buffer.
 
Method Summary
static void main(String[] args)
          Debug method.
 StringBuffer read()
          Method to access the serialized label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelReader

public LabelReader(URI uri,
                   String indent)
            throws Exception
Constructor reads the label into the private string buffer.

Parameters:
uri: - the URI location of the label to read
indent: - the starting indentation for printing each statement
Throws:
Exception
Method Detail

read

public StringBuffer read()
Method to access the serialized label.

Returns:

main

public static void main(String[] args)
                 throws Exception
Debug method.

Parameters:
args -
Throws:
Exception


Copyright © 2010–2014 Planetary Data System. All rights reserved.