public class FilePersistentStorage extends Object implements PersistentStorage
Constructor and Description |
---|
FilePersistentStorage() |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String path) |
InputStream |
openForRead(String path) |
OutputStream |
openForWrite(String path) |
boolean |
renameTo(String oldPath,
String newPath) |
public InputStream openForRead(String path) throws IOException
openForRead
in interface PersistentStorage
IOException
public OutputStream openForWrite(String path) throws IOException
openForWrite
in interface PersistentStorage
IOException
public boolean exists(String path)
exists
in interface PersistentStorage
public boolean renameTo(String oldPath, String newPath) throws IOException
renameTo
in interface PersistentStorage
IOException
Copyright © 2015. All rights reserved.