Package com.github.mjdev.libaums.fs
Class AbstractUsbFile
- java.lang.Object
-
- com.github.mjdev.libaums.fs.AbstractUsbFile
-
- All Implemented Interfaces:
UsbFile,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
FatDirectory,FatFile
public abstract class AbstractUsbFile extends java.lang.Object implements UsbFile
Created by magnusja on 3/1/17.
-
-
Constructor Summary
Constructors Constructor Description AbstractUsbFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetAbsolutePath()Absolute path of a file or directory.inthashCode()UsbFilesearch(java.lang.String path)Tries to search a corresponding entry associated with the path parameter.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.mjdev.libaums.fs.UsbFile
close, createdAt, createDirectory, createFile, delete, flush, getLength, getName, getParent, isDirectory, isRoot, lastAccessed, lastModified, list, listFiles, moveTo, read, setLength, setName, write
-
-
-
-
Method Detail
-
search
public UsbFile search(java.lang.String path) throws java.io.IOException
Description copied from interface:UsbFileTries to search a corresponding entry associated with the path parameter. Path separator is '/'. Parameter path must not start with an '/' (except if querying from root directory). Path is treated relative to current UsbFile.
-
getAbsolutePath
public java.lang.String getAbsolutePath()
Description copied from interface:UsbFileAbsolute path of a file or directory.- Specified by:
getAbsolutePathin interfaceUsbFile- Returns:
- Absolute path seperated with '/' and beginning with an '/'
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-