org.naftulin.configmgr.parsers
Class AbstractConfigEntryParser

java.lang.Object
  extended by org.naftulin.configmgr.parsers.AbstractConfigEntryParser
All Implemented Interfaces:
ConfigEntryParser
Direct Known Subclasses:
AbstractLog4JParser, MasterRecordParser

public abstract class AbstractConfigEntryParser
extends java.lang.Object
implements ConfigEntryParser

Common configuration entry parser class. Used as more of a place-holder for common functionality. The only method used so far is reading the input stream.

Since:
1.0
Author:
Henry Naftulin

Constructor Summary
AbstractConfigEntryParser()
           
 
Method Summary
protected  java.lang.String readStreamContentAsString(java.io.InputStream is)
          Returns the content of the input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.naftulin.configmgr.parsers.ConfigEntryParser
getConfigurationManagementEntry
 

Constructor Detail

AbstractConfigEntryParser

public AbstractConfigEntryParser()
Method Detail

readStreamContentAsString

protected java.lang.String readStreamContentAsString(java.io.InputStream is)
                                              throws java.io.IOException
Returns the content of the input stream. Reads the stream and creates a string out of it's content.

Parameters:
is - the open, buffered input stream
Returns:
the content of the input stream.
Throws:
java.io.IOException - if the stream could not be read.


Copyright © 2009. All Rights Reserved.