Package org.openl.rules.repository.api
Class FileItem
- java.lang.Object
-
- org.openl.rules.repository.api.FileItem
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class FileItem extends Object implements Closeable
- Author:
- Yury Molchan
-
-
Constructor Summary
Constructors Constructor Description FileItem(String name, InputStream stream)FileItem(FileData data, InputStream stream)
-
-
-
Constructor Detail
-
FileItem
public FileItem(String name, InputStream stream)
- Parameters:
name- the full path name from the root folder.stream- the stream for the file. The file is deleted if stream is null.
-
FileItem
public FileItem(FileData data, InputStream stream)
- Parameters:
data- the file descriptorstream- the stream for the file. The file is deleted if stream is null.
-
-
Method Detail
-
getData
public FileData getData()
-
getStream
public InputStream getStream()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-