de.espirit.firstspirit.io
Interface FileSystem<T extends de.espirit.firstspirit.io.FileHandle>

All Superinterfaces:
Closeable

public interface FileSystem<T extends de.espirit.firstspirit.io.FileHandle>
extends Closeable

Since:
4.0

Field Summary
static String SEPARATOR
           
static char SEPARATOR_CHAR
           
 
Method Summary
 void close()
          Close file system.
 T obtain(String path)
          Obtain a handle to the file or directory with the given path.
 

Field Detail

SEPARATOR

static final String SEPARATOR
Since:
4.0
See Also:
Constant Field Values

SEPARATOR_CHAR

static final char SEPARATOR_CHAR
Since:
4.0
Method Detail

obtain

@NotNull
T obtain(String path)
                                                      throws IOException
Obtain a handle to the file or directory with the given path.

If the given path is null or empty, the handle of the current working directory is returned.

Parameters:
path - The path to the file or directory.
Returns:
A FileHandle.
Throws:
IOException
Since:
4.0

close

void close()
           throws IOException
Close file system.
Releases any resources associated with this file system. Do not use the file system after calling this method.

Specified by:
close in interface Closeable
Throws:
IOException
Since:
4.0


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480