|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.shrinkwrap.api.asset.FileAsset
public class FileAsset
Implementation of an Asset
backed by a File
Constructor Summary | |
---|---|
FileAsset(java.io.File file)
Load the specified File. |
Method Summary | |
---|---|
java.io.InputStream |
openStream()
Opens a new FileInputStream for the given File. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileAsset(java.io.File file)
file
- The file to load
java.lang.IllegalArgumentException
- File can not be null
java.lang.IllegalArgumentException
- File must existMethod Detail |
---|
public java.io.InputStream openStream()
openStream
in interface Asset
InputStream
for each call, or null if this
type simply represents a logical path within an Archive
java.lang.RuntimeException
- If the file is not found.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |