|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.scribble.common.resource.FileContent
public class FileContent
This class represents file content to be used by the Scribble tools.
Constructor Summary | |
---|---|
FileContent(File file)
This construct is initialized with the file. |
Method Summary | |
---|---|
InputStream |
getInputStream()
This method returns the input stream for accessing the content. |
String |
getName()
This method returns the content name if available. |
boolean |
hasExtension(String ext)
This method determines whether the content has an extension of the specified type. |
boolean |
isXSDElement(QName xsdElem)
This method determines whether the content is an XSD element of the value specified. |
boolean |
isXSDType(QName xsdType)
This method determines whether the content is an XSD type of the value specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileContent(File file)
file
- The fileMethod Detail |
---|
public String getName()
getName
in interface Content
public InputStream getInputStream() throws IOException
getInputStream
in interface Content
IOException
- Failed to get input streampublic boolean hasExtension(String ext)
hasExtension
in interface Content
ext
- The extension
public boolean isXSDType(QName xsdType)
isXSDType
in interface Content
xsdType
- The XSD type name
public boolean isXSDElement(QName xsdElem)
isXSDElement
in interface Content
xsdElem
- The XSD element name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |