com.sun.tdk.signaturetest.sigfile
Class F40Reader
java.lang.Object
com.sun.tdk.signaturetest.sigfile.F40Reader
- All Implemented Interfaces:
- Reader
- Direct Known Subclasses:
- F41Reader
public class F40Reader
- extends java.lang.Object
- implements Reader
|
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.
F40Reader
public F40Reader(Format format)
convertClassDescr
protected java.lang.String convertClassDescr(java.lang.String descr)
convertClassDefinitions
protected java.util.List convertClassDefinitions(java.util.List definitions)
getParser
protected Parser getParser()
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