public class FileAsset extends Object implements Asset
public FileAsset(File file)
file
- The file to loadIllegalArgumentException
- File can not be nullIllegalArgumentException
- File must existpublic InputStream openStream()
openStream
in interface Asset
InputStream
for each call, or null if this type simply represents a logical path
within an Archive
RuntimeException
- If the file is not found.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.