public abstract class AbstractFileImpl<T extends AbstractFile> extends Object implements AbstractFile
Modifier and Type | Field and Description |
---|---|
protected Connection |
con |
protected AbstractFileFactory<T> |
fileFactory |
Constructor and Description |
---|
AbstractFileImpl(AbstractFileFactory<T> fileFactory,
Connection con) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(AbstractFile src) |
AbstractFileFactory<T> |
getFileFactory() |
OutputStream |
getOutputStream(boolean append) |
void |
moveTo(AbstractFile target) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createFolder, createNewFile, delete, exists, getAbsolutePath, getAttributes, getCanonicalPath, getChildren, getInputStream, getName, getOutputStream, isDirectory, isFile, isHidden, isReadable, isWritable, lastModified, length, openFile, refresh, resolveFile, setAttributes, supportsRandomAccess, truncate
protected AbstractFileFactory<T extends AbstractFile> fileFactory
protected Connection con
public AbstractFileImpl(AbstractFileFactory<T> fileFactory, Connection con)
public void copyFrom(AbstractFile src) throws IOException, PermissionDeniedException
copyFrom
in interface AbstractFile
IOException
PermissionDeniedException
public void moveTo(AbstractFile target) throws IOException, PermissionDeniedException
moveTo
in interface AbstractFile
IOException
PermissionDeniedException
public OutputStream getOutputStream(boolean append) throws IOException
getOutputStream
in interface AbstractFile
IOException
public AbstractFileFactory<T> getFileFactory()
getFileFactory
in interface AbstractFile
Copyright © 2024. All rights reserved.