TPTP 4.2.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.drivers.internal
Interface IReader

All Known Implementing Classes:
DXmlDocumentReader, DXmlReader, DXsdReader

public interface IReader

IReader is provided to federate any class wanted to read IDObject, or IDItem of JScrib core using an InputStream.


Method Summary
 void clear()
          Clears before re-use
 DColorRegistry getColorRegistry()
          Returns the colors which has been loaded by the reader.
 DFontRegistry getFontRegistry()
          Returns the fonts which has been loaded by the reader.
 DStyleRegistry getStyleRegistry()
          Returns the styles which has been loaded by the reader.
 IDObject[] read(java.io.InputStream in)
          Reads the IDObject from an InputStream.
 void setColorRegistry(DColorRegistry registry)
          Sets the color registry where the reader stores the colors which loads
 void setFontRegistry(DFontRegistry registry)
          Sets the font registry where the reader stores the fonts which loads
 void setStyleRegistry(DStyleRegistry registry)
          Sets the style registry where the reader stores the styles which loads
 

Method Detail

read

public IDObject[] read(java.io.InputStream in)
                throws java.lang.Exception
Reads the IDObject from an InputStream.

Throws:
java.lang.Exception

getStyleRegistry

public DStyleRegistry getStyleRegistry()
Returns the styles which has been loaded by the reader.


getFontRegistry

public DFontRegistry getFontRegistry()
Returns the fonts which has been loaded by the reader.


getColorRegistry

public DColorRegistry getColorRegistry()
Returns the colors which has been loaded by the reader.


setStyleRegistry

public void setStyleRegistry(DStyleRegistry registry)
Sets the style registry where the reader stores the styles which loads


setFontRegistry

public void setFontRegistry(DFontRegistry registry)
Sets the font registry where the reader stores the fonts which loads


setColorRegistry

public void setColorRegistry(DColorRegistry registry)
Sets the color registry where the reader stores the colors which loads


clear

public void clear()
Clears before re-use


TPTP 4.2.0 Platform Project
Internal API Specification