public abstract class AbstractFileSystem extends java.lang.Object implements FileSystem
Title: Framework Support Library
Description: Partially FileSystem
implementation. FileSystem
implementations should extend this class.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BUFFER_SIZE |
Constructor and Description |
---|
AbstractFileSystem() |
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
append(java.lang.String path) |
java.io.OutputStream |
create(java.lang.String path) |
java.io.OutputStream |
create(java.lang.String path,
boolean overwrite) |
java.io.OutputStream |
create(java.lang.String path,
boolean overwrite,
FilePermissions permissions) |
java.io.OutputStream |
create(java.lang.String path,
boolean overwrite,
FilePermissions permissions,
int bufferSize,
int replication,
long blockSize) |
void |
createNewFile(java.lang.String path) |
long |
getDefaultBlockSize(java.lang.String path) |
int |
getDefaultBufferSize() |
int |
getDefaultReplication(java.lang.String path) |
void |
mkdir(java.lang.String path) |
java.io.InputStream |
open(java.lang.String path) |
com.streamscape.ds.persist.RandomAccessInputStream |
openForRandomRead(java.lang.String path) |
java.io.OutputStream |
openForWrite(java.lang.String path) |
java.lang.String |
separator() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, close, copy, create, createNewFile, createTempFile, delete, exists, getInfo, getPathURI, getSize, isDirectory, isFile, isLocal, list, list, mkdir, move, open, open, openForRandomRead, openForWrite, rename, setOwner, setPermissions, truncate, writeFileFromInputStream
public int getDefaultBufferSize()
public void mkdir(java.lang.String path) throws java.io.IOException
mkdir
in interface FileSystem
java.io.IOException
public void createNewFile(java.lang.String path) throws java.io.IOException
createNewFile
in interface FileSystem
java.io.IOException
public java.io.OutputStream create(java.lang.String path) throws java.io.IOException
create
in interface FileSystem
java.io.IOException
public java.io.OutputStream create(java.lang.String path, boolean overwrite) throws java.io.IOException
create
in interface FileSystem
java.io.IOException
public java.io.OutputStream create(java.lang.String path, boolean overwrite, FilePermissions permissions) throws java.io.IOException
create
in interface FileSystem
java.io.IOException
public java.io.OutputStream create(java.lang.String path, boolean overwrite, FilePermissions permissions, int bufferSize, int replication, long blockSize) throws java.io.IOException
create
in interface FileSystem
java.io.IOException
public java.io.InputStream open(java.lang.String path) throws java.io.IOException
open
in interface FileSystem
java.io.IOException
public com.streamscape.ds.persist.RandomAccessInputStream openForRandomRead(java.lang.String path) throws java.io.IOException
openForRandomRead
in interface FileSystem
java.io.IOException
public java.io.OutputStream append(java.lang.String path) throws java.io.IOException
append
in interface FileSystem
java.io.IOException
public java.io.OutputStream openForWrite(java.lang.String path) throws java.io.IOException
openForWrite
in interface FileSystem
java.io.IOException
public int getDefaultReplication(java.lang.String path) throws java.io.IOException
getDefaultReplication
in interface FileSystem
java.io.IOException
public long getDefaultBlockSize(java.lang.String path) throws java.io.IOException
getDefaultBlockSize
in interface FileSystem
java.io.IOException
public java.lang.String separator()
separator
in interface FileSystem
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.