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 |
getSpace(String path,
UnderFileSystem.SpaceType type) |
boolean |
isFile(String path) |
String[] |
list(String path) |
boolean |
mkdirs(String path,
boolean createParent) |
InputStream |
open(String path) |
boolean |
rename(String src,
String dst) |
get
public static UnderFileSystem getClient()
public void close() throws IOException
close
in class UnderFileSystem
IOException
public OutputStream create(String path) throws IOException
create
in class UnderFileSystem
IOException
public OutputStream create(String path, int blockSizeByte) throws IOException
create
in class UnderFileSystem
IOException
public OutputStream create(String path, short replication, int blockSizeByte) throws IOException
create
in class UnderFileSystem
IOException
public boolean delete(String path, boolean recursive) throws IOException
delete
in class UnderFileSystem
IOException
public boolean exists(String path) throws IOException
exists
in class UnderFileSystem
IOException
public String[] list(String path) throws IOException
list
in class UnderFileSystem
IOException
public List<String> getFileLocations(String path) throws IOException
getFileLocations
in class UnderFileSystem
IOException
public List<String> getFileLocations(String path, long offset) throws IOException
getFileLocations
in class UnderFileSystem
IOException
public long getFileSize(String path) throws IOException
getFileSize
in class UnderFileSystem
IOException
public long getBlockSizeByte(String path) throws IOException
getBlockSizeByte
in class UnderFileSystem
IOException
public long getSpace(String path, UnderFileSystem.SpaceType type) throws IOException
getSpace
in class UnderFileSystem
IOException
public boolean isFile(String path) throws IOException
isFile
in class UnderFileSystem
IOException
public boolean mkdirs(String path, boolean createParent) throws IOException
mkdirs
in class UnderFileSystem
IOException
public InputStream open(String path) throws IOException
open
in class UnderFileSystem
IOException
public boolean rename(String src, String dst) throws IOException
rename
in class UnderFileSystem
IOException
Copyright © 2013. All rights reserved.