public class FileItem extends Object implements Closeable
| Constructor and Description |
|---|
FileItem(FileData data,
InputStream stream) |
FileItem(String name,
InputStream stream) |
public FileItem(String name, InputStream stream)
name - the full path name from the root folder.stream - the stream for the file. The file is deleted if stream is null.public FileItem(FileData data, InputStream stream)
data - the file descriptorstream - the stream for the file. The file is deleted if stream is null.public FileData getData()
public InputStream getStream()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2004–2021 OpenL Tablets. All rights reserved.