Package tv.hd3g.transfertfiles
Class CommonAbstractFile<T extends AbstractFileSystem<?>>
java.lang.Object
tv.hd3g.transfertfiles.CommonAbstractFile<T>
- All Implemented Interfaces:
AbstractFile
public abstract class CommonAbstractFile<T extends AbstractFileSystem<?>>
extends Object
implements AbstractFile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()getPath()Relative path onlyinthashCode()booleanisHidden()static longobservableCopyStream(InputStream inputStream, OutputStream outputStream, int bufferSize, SizedStoppableCopyCallback copyCallback) Dont forget to close inputStream / outputStream after usetoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface tv.hd3g.transfertfiles.AbstractFile
copyAbstractToAbstract, copyAbstractToAbstract, copyAbstractToLocal, delete, downloadAbstract, exists, isDirectory, isFile, isLink, isSpecial, lastModified, length, list, mkdir, renameTo, renameTo, sendLocalToAbstract, toCache, toCachedList, uploadAbstract
-
Field Details
-
fileSystem
-
path
Relative path only
-
-
Constructor Details
-
CommonAbstractFile
-
-
Method Details
-
getFileSystem
- Specified by:
getFileSystemin interfaceAbstractFile
-
toString
-
getPath
Description copied from interface:AbstractFileRelative path only- Specified by:
getPathin interfaceAbstractFile- Returns:
- always with '/' as directory separators
-
getName
- Specified by:
getNamein interfaceAbstractFile
-
getParent
- Specified by:
getParentin interfaceAbstractFile- Returns:
- null if not parent (this is root dir)
-
isHidden
public boolean isHidden()- Specified by:
isHiddenin interfaceAbstractFile- Returns:
- marked "hidden" or is a dotfile
-
hashCode
public int hashCode() -
equals
-
observableCopyStream
public static long observableCopyStream(InputStream inputStream, OutputStream outputStream, int bufferSize, SizedStoppableCopyCallback copyCallback) throws IOException Dont forget to close inputStream / outputStream after use- Throws:
IOException
-