|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tdk.signaturetest.sigfile.SignatureClassLoader
public abstract class SignatureClassLoader
SignatureClassLoader implements input stream sequentially reading ClassDescription instances from signature file. This program merges several signature files into a single one.
ClassDescription| 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 | |
|---|---|
protected |
SignatureClassLoader(Format format)
|
| Method Summary | |
|---|---|
void |
close()
|
protected abstract java.util.List |
convertClassDefinitions(java.util.List definitions)
|
protected abstract java.lang.String |
convertClassDescr(java.lang.String descr)
|
java.util.Set |
getAllSupportedFeatures()
|
java.lang.String |
getApiVersion()
|
protected abstract Parser |
getParser()
|
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Format format
protected java.util.Set features
protected java.lang.String apiVersion
this signature file.
protected java.lang.String signatureFileFormat
this signature file.
| Constructor Detail |
|---|
protected SignatureClassLoader(Format format)
| Method Detail |
|---|
protected abstract Parser getParser()
public boolean hasFeature(FeaturesHolder.Feature feature)
hasFeature in interface Readerpublic java.util.Set getAllSupportedFeatures()
getAllSupportedFeatures in interface Reader
public void close()
throws java.io.IOException
close in interface Readerjava.io.IOException
public ClassDescription readNextClass()
throws java.io.IOException
this signature file.
readNextClass in interface Readerjava.io.IOExceptionClassDescriptionprotected java.lang.String preprocessLine(java.lang.String currentLine)
protected abstract java.lang.String convertClassDescr(java.lang.String descr)
protected abstract java.util.List convertClassDefinitions(java.util.List definitions)
public boolean readSignatureFile(java.net.URL fileURL)
throws java.io.IOException
fileURL for input, and parse comments to initialize fields
readSignatureFile in interface Readerjava.io.IOException
protected boolean readHeaders(java.io.BufferedReader in)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getApiVersion()
getApiVersion in interface Reader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||