com.sun.tdk.signaturetest.plugin
Class ReaderAdapter
java.lang.Object
com.sun.tdk.signaturetest.sigfile.F40Reader
com.sun.tdk.signaturetest.sigfile.F41Reader
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
ReaderAdapter
public ReaderAdapter(Format format)
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