public class UnderFileSystemSingleLocal extends UnderFileSystem
UnderFileSystem.SpaceType| Constructor and Description |
|---|
UnderFileSystemSingleLocal() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
OutputStream |
create(String path) |
OutputStream |
create(String path,
int blockSizeByte) |
OutputStream |
create(String path,
short replication,
int blockSizeByte) |
boolean |
delete(String path,
boolean recursive) |
boolean |
exists(String path) |
long |
getBlockSizeByte(String path) |
static UnderFileSystem |
getClient() |
List<String> |
getFileLocations(String path) |
List<String> |
getFileLocations(String path,
long offset) |
long |
getFileSize(String path) |
long |
getModificationTimeMs(String path) |
long |
getSpace(String path,
UnderFileSystem.SpaceType type) |
boolean |
isFile(String path) |
String[] |
list(String path)
List all the files in the folder.
|
boolean |
mkdirs(String path,
boolean createParent) |
InputStream |
open(String path) |
boolean |
rename(String src,
String dst) |
void |
toFullPermission(String path) |
getpublic static UnderFileSystem getClient()
public void toFullPermission(String path) throws IOException
toFullPermission in class UnderFileSystemIOExceptionpublic void close()
throws IOException
close in class UnderFileSystemIOExceptionpublic OutputStream create(String path) throws IOException
create in class UnderFileSystemIOExceptionpublic OutputStream create(String path, int blockSizeByte) throws IOException
create in class UnderFileSystemIOExceptionpublic OutputStream create(String path, short replication, int blockSizeByte) throws IOException
create in class UnderFileSystemIOExceptionpublic boolean delete(String path, boolean recursive) throws IOException
delete in class UnderFileSystemIOExceptionpublic boolean exists(String path) throws IOException
exists in class UnderFileSystemIOExceptionpublic String[] list(String path) throws IOException
UnderFileSystemlist in class UnderFileSystempath - the path to list.IOExceptionpublic List<String> getFileLocations(String path) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic List<String> getFileLocations(String path, long offset) throws IOException
getFileLocations in class UnderFileSystemIOExceptionpublic long getFileSize(String path) throws IOException
getFileSize in class UnderFileSystemIOExceptionpublic long getBlockSizeByte(String path) throws IOException
getBlockSizeByte in class UnderFileSystemIOExceptionpublic long getModificationTimeMs(String path) throws IOException
getModificationTimeMs in class UnderFileSystemIOExceptionpublic long getSpace(String path, UnderFileSystem.SpaceType type) throws IOException
getSpace in class UnderFileSystemIOExceptionpublic boolean isFile(String path) throws IOException
isFile in class UnderFileSystemIOExceptionpublic boolean mkdirs(String path, boolean createParent) throws IOException
mkdirs in class UnderFileSystemIOExceptionpublic InputStream open(String path) throws IOException
open in class UnderFileSystemIOExceptionpublic boolean rename(String src, String dst) throws IOException
rename in class UnderFileSystemIOExceptionCopyright © 2014. All rights reserved.