public class CryptoFileResource extends Object implements CryptoResource
CryptoResource for a File.| Constructor and Description |
|---|
CryptoFileResource(File file)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
ensureExists() |
boolean |
exists() |
File |
getFile() |
String |
getUri() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
private void |
verifyNotDirectory() |
private final File file
public boolean exists()
exists in interface CryptoResourcetrue if this resource already exists, false otherwise.private void ensureExists()
private void verifyNotDirectory()
public String getUri()
getUri in interface CryptoResourcepublic InputStream openInputStream()
openInputStream in interface CryptoResourceInputStream to read this resource.public OutputStream openOutputStream()
openOutputStream in interface CryptoResourceOutputStream to write to this resource. If the resource already exists the
data written to the OutputStream will overwrite all existing data. Otherwise (if not yet
exists) it will be created.Copyright © 2001–2019 mmm-Team. All rights reserved.