com.sun.tdk.signaturetest.plugin
Class ReaderAdapter

java.lang.Object
  extended by com.sun.tdk.signaturetest.sigfile.F40Reader
      extended by com.sun.tdk.signaturetest.sigfile.F41Reader
          extended by com.sun.tdk.signaturetest.plugin.ReaderAdapter
All Implemented Interfaces:
Reader

public class ReaderAdapter
extends F41Reader


Field Summary
protected  java.lang.String apiVersion
          API version found in this signature file.
protected  java.util.Set features
           
protected  Format format
           
protected  java.lang.String signatureFileFormat
          Sigfile format version found in this signature file.
 
Constructor Summary
ReaderAdapter(Format format)
           
 
Method Summary
 void close()
           
 java.util.Set getAllSupportedFeatures()
           
 java.lang.String getApiVersion()
           
 boolean hasFeature(FeaturesHolder.Feature feature)
           
protected  java.lang.String preprocessLine(java.lang.String currentLine)
           
protected  boolean readHeaders(java.io.BufferedReader in)
           
 ClassDescription readNextClass()
          Return the next SigFileClassDescription read from this signature file.
 boolean readSignatureFile(java.net.URL fileURL)
          Open fileURL for input, and parse comments to initialize fields
 
Methods inherited from class com.sun.tdk.signaturetest.sigfile.F41Reader
getParser
 
Methods inherited from class com.sun.tdk.signaturetest.sigfile.F40Reader
convertClassDefinitions, convertClassDescr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.tdk.signaturetest.sigfile.Reader
close, getAllSupportedFeatures, getApiVersion, hasFeature, readNextClass, readSignatureFile
 

Field Detail

format

protected Format format

features

protected java.util.Set features

apiVersion

protected java.lang.String apiVersion
API version found in this signature file.


signatureFileFormat

protected java.lang.String signatureFileFormat
Sigfile format version found in this signature file.

Constructor Detail

ReaderAdapter

public ReaderAdapter(Format format)
Method Detail

hasFeature

public boolean hasFeature(FeaturesHolder.Feature feature)
Specified by:
hasFeature in interface Reader

getAllSupportedFeatures

public java.util.Set getAllSupportedFeatures()
Specified by:
getAllSupportedFeatures in interface Reader

close

public void close()
           throws java.io.IOException
Specified by:
close in interface Reader
Throws:
java.io.IOException

readNextClass

public ClassDescription readNextClass()
                               throws java.io.IOException
Return the next SigFileClassDescription read from this signature file.

Specified by:
readNextClass in interface Reader
Throws:
java.io.IOException
See Also:
ClassDescription

preprocessLine

protected java.lang.String preprocessLine(java.lang.String currentLine)

readSignatureFile

public boolean readSignatureFile(java.net.URL fileURL)
                          throws java.io.IOException
Open fileURL for input, and parse comments to initialize fields

Specified by:
readSignatureFile in interface Reader
Throws:
java.io.IOException

readHeaders

protected boolean readHeaders(java.io.BufferedReader in)
                       throws java.io.IOException
Throws:
java.io.IOException

getApiVersion

public java.lang.String getApiVersion()
Specified by:
getApiVersion in interface Reader