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