public class MemoryFile extends Object implements File, Serializable
Constructor and Description |
---|
MemoryFile(MemoryFileSystem mfs,
String name,
Folder folder) |
Modifier and Type | Method and Description |
---|---|
void |
create(InputStream is) |
boolean |
equals(Object obj) |
boolean |
exists() |
InputStream |
getContents() |
Folder |
getFolder() |
String |
getName() |
Path |
getPath() |
Path |
getRelativePath() |
int |
hashCode() |
void |
setContents(InputStream is) |
String |
toString() |
public MemoryFile(MemoryFileSystem mfs, String name, Folder folder)
public InputStream getContents() throws IOException
getContents
in interface File
IOException
public Path getPath()
getPath
in interface File
getPath
in interface FileSystemItem
public Path getRelativePath()
public Folder getFolder()
public void setContents(InputStream is) throws IOException
setContents
in interface File
IOException
public void create(InputStream is) throws IOException
create
in interface File
IOException
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.