public class SLFileUtils
extends java.lang.Object
Title: Semantic Lexicon Processing Framework
Description: Utilities class for sl file operations.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
Constructor and Description |
---|
SLFileUtils(com.streamscape.slex.file.SLFileMessageRaiser raiser,
java.lang.String filename,
int transferBufferSize) |
Modifier and Type | Method and Description |
---|---|
com.streamscape.slex.lang.completion.DSLCompletion |
complete() |
com.streamscape.slex.lang.completion.DSLCompletion |
complete(java.lang.String fileName) |
void |
copy(java.lang.String src,
java.lang.String dst) |
void |
createDirectory() |
void |
createDirectory(java.lang.String fileName) |
void |
createDirectory(java.lang.String fileName,
FilePermissions permissions) |
void |
createFile(byte[] content,
boolean overwrite) |
void |
createFile(java.io.InputStream content,
boolean overwrite) |
void |
createFile(java.io.InputStream content,
long contentSize,
boolean overwrite) |
void |
createFile(java.lang.String fileName,
byte[] content,
boolean overwrite) |
void |
createFile(java.lang.String fileName,
java.io.InputStream content,
boolean overwrite) |
void |
createFile(java.lang.String fileName,
java.io.InputStream content,
long contentSize,
boolean overwrite) |
void |
createNewFile(FilePermissions permissions) |
com.streamscape.slex.file.SLFileInputStream |
createSLFileInputStream() |
com.streamscape.slex.file.SLFileInputStream |
createSLFileInputStream(java.lang.String fileName) |
com.streamscape.slex.file.SLFileOutputStream |
createSLFileOutputStream() |
com.streamscape.slex.file.SLFileOutputStream |
createSLFileOutputStream(java.lang.String fileName) |
void |
delete() |
void |
delete(java.lang.String fileName) |
void |
delete(java.lang.String fileName,
boolean recursive) |
boolean |
exists() |
boolean |
exists(java.lang.String fileName) |
byte[] |
getFileContent() |
byte[] |
getFileContent(java.lang.String fileName) |
FileInfo |
getFileInfo(java.lang.String path) |
java.lang.String |
getFilename() |
int |
getTransferBufferSize() |
boolean |
isDirectory() |
boolean |
isDirectory(java.lang.String fileName) |
boolean |
isVerbose() |
java.util.List |
list(java.lang.String path,
boolean recursive) |
java.util.List |
listDirectory() |
java.util.List |
listDirectory(java.lang.String fileName) |
void |
move(java.lang.String src,
java.lang.String dst) |
void |
readFile(java.io.OutputStream stream) |
void |
readFile(java.lang.String fileName,
java.io.OutputStream stream) |
void |
rename(java.lang.String src,
java.lang.String dst) |
void |
setFilename(java.lang.String filename) |
void |
setOwner(java.lang.String username,
java.lang.String groupname) |
void |
setPermissions(FilePermissions permissions) |
void |
setVerbose(boolean verbose) |
boolean |
supportsCreateDirectoryOperation() |
boolean |
supportsExistsOperation() |
boolean |
supportsIsDirectoryOperation()
Returns true if stream supports isDirectory operations.
|
public SLFileUtils(com.streamscape.slex.file.SLFileMessageRaiser raiser, java.lang.String filename, int transferBufferSize)
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
public int getTransferBufferSize()
public void createFile(byte[] content, boolean overwrite) throws java.io.IOException
java.io.IOException
public void createFile(java.io.InputStream content, boolean overwrite) throws java.io.IOException
java.io.IOException
public void createFile(java.io.InputStream content, long contentSize, boolean overwrite) throws java.io.IOException
java.io.IOException
public void createFile(java.lang.String fileName, byte[] content, boolean overwrite) throws java.io.IOException
java.io.IOException
public void createFile(java.lang.String fileName, java.io.InputStream content, boolean overwrite) throws java.io.IOException
java.io.IOException
public void createFile(java.lang.String fileName, java.io.InputStream content, long contentSize, boolean overwrite) throws java.io.IOException
java.io.IOException
public byte[] getFileContent() throws java.io.IOException
java.io.IOException
public byte[] getFileContent(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void readFile(java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public void readFile(java.lang.String fileName, java.io.OutputStream stream) throws java.io.IOException
java.io.IOException
public com.streamscape.slex.file.SLFileInputStream createSLFileInputStream() throws java.io.IOException
java.io.IOException
public com.streamscape.slex.file.SLFileInputStream createSLFileInputStream(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public com.streamscape.slex.file.SLFileOutputStream createSLFileOutputStream() throws java.io.IOException
java.io.IOException
public com.streamscape.slex.file.SLFileOutputStream createSLFileOutputStream(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public boolean isVerbose()
public void setVerbose(boolean verbose)
public boolean exists() throws java.io.IOException
java.io.IOException
public boolean exists(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public boolean supportsExistsOperation() throws java.io.IOException
java.io.IOException
public boolean isDirectory() throws java.io.IOException
java.io.IOException
public boolean isDirectory(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public boolean supportsIsDirectoryOperation() throws java.io.IOException
java.io.IOException
public void createDirectory() throws java.io.IOException
java.io.IOException
public void createDirectory(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void createDirectory(java.lang.String fileName, FilePermissions permissions) throws java.io.IOException
java.io.IOException
public boolean supportsCreateDirectoryOperation() throws java.io.IOException
java.io.IOException
public java.util.List listDirectory() throws java.io.IOException
java.io.IOException
public java.util.List listDirectory(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void delete() throws java.io.IOException
java.io.IOException
public void delete(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void delete(java.lang.String fileName, boolean recursive) throws java.io.IOException
java.io.IOException
public com.streamscape.slex.lang.completion.DSLCompletion complete() throws java.io.IOException
java.io.IOException
public com.streamscape.slex.lang.completion.DSLCompletion complete(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public FileInfo getFileInfo(java.lang.String path) throws java.io.IOException
java.io.IOException
public java.util.List list(java.lang.String path, boolean recursive) throws java.io.IOException
java.io.IOException
public void copy(java.lang.String src, java.lang.String dst) throws java.io.IOException
java.io.IOException
public void move(java.lang.String src, java.lang.String dst) throws java.io.IOException
java.io.IOException
public void rename(java.lang.String src, java.lang.String dst) throws java.io.IOException
java.io.IOException
public void setOwner(java.lang.String username, java.lang.String groupname) throws java.io.IOException
java.io.IOException
public void setPermissions(FilePermissions permissions) throws java.io.IOException
java.io.IOException
public void createNewFile(FilePermissions permissions) throws java.io.IOException
java.io.IOException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.