public abstract class AbstractDirectFile<T extends AbstractDirectFile<T>> extends AbstractFileImpl<T>
Modifier and Type | Field and Description |
---|---|
protected File |
f |
protected boolean |
hidden |
protected String |
homeDir |
con, fileFactory
Constructor and Description |
---|
AbstractDirectFile(String path,
AbstractFileFactory<T> fileFactory,
Connection con,
String homeDir) |
Modifier and Type | Method and Description |
---|---|
boolean |
createFolder() |
boolean |
createNewFile() |
boolean |
delete(boolean recurse) |
boolean |
exists() |
String |
getAbsolutePath() |
abstract SftpFileAttributes |
getAttributes() |
String |
getCanonicalPath() |
InputStream |
getInputStream() |
String |
getName() |
OutputStream |
getOutputStream() |
boolean |
isDirectory() |
boolean |
isFile() |
boolean |
isHidden() |
boolean |
isReadable() |
boolean |
isWritable() |
long |
lastModified() |
long |
length() |
void |
moveTo(AbstractFile f2) |
AbstractFileRandomAccess |
openFile(boolean writeAccess) |
void |
refresh() |
void |
setAttributes(SftpFileAttributes attrs) |
boolean |
supportsRandomAccess() |
void |
truncate() |
copyFrom, getFileFactory, getOutputStream
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, resolveFile
public AbstractDirectFile(String path, AbstractFileFactory<T> fileFactory, Connection con, String homeDir) throws IOException
IOException
public boolean exists()
public boolean createFolder() throws PermissionDeniedException
PermissionDeniedException
public long lastModified()
public String getName()
public long length()
public abstract SftpFileAttributes getAttributes() throws FileNotFoundException
FileNotFoundException
public boolean isDirectory()
public boolean isFile()
public String getAbsolutePath() throws IOException
IOException
public boolean isReadable()
public boolean isWritable()
public boolean createNewFile() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public void truncate() throws PermissionDeniedException, IOException
PermissionDeniedException
IOException
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
public boolean delete(boolean recurse)
public void moveTo(AbstractFile f2) throws IOException, PermissionDeniedException
moveTo
in interface AbstractFile
moveTo
in class AbstractFileImpl<T extends AbstractDirectFile<T>>
IOException
PermissionDeniedException
public void setAttributes(SftpFileAttributes attrs)
public String getCanonicalPath() throws IOException
IOException
public boolean supportsRandomAccess()
public AbstractFileRandomAccess openFile(boolean writeAccess) throws IOException
IOException
public boolean isHidden()
public void refresh()
Copyright © 2024. All rights reserved.