public class FileAsset extends Object implements Asset
Constructor and Description |
---|
FileAsset(Path file)
Creates a new file asset.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object obj) |
MediaType |
getContentType() |
long |
getLastModified() |
long |
getSize() |
int |
hashCode() |
boolean |
isDirectory() |
InputStream |
stream() |
String |
toString() |
public long getSize()
public long getLastModified()
getLastModified
in interface Asset
@Nonnull public MediaType getContentType()
getContentType
in interface Asset
public InputStream stream()
public void close()
close
in interface AutoCloseable
public boolean isDirectory()
isDirectory
in interface Asset
Copyright © 2019. All rights reserved.