public class DuracloudFileWriter extends Writer
| Constructor and Description |
|---|
DuracloudFileWriter(String spaceId,
String contentId,
String mimetype,
ContentStore contentStore) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
void |
flush()
Writes the tempfile to durastore.
|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(String line) |
void |
writeLine(String line)
Same as write but appends a new line to the end of the supplied line.
|
public DuracloudFileWriter(String spaceId, String contentId, String mimetype, ContentStore contentStore) throws DuraCloudRuntimeException
spaceId - of the space in which you would like to persist the text.contentId - of the item you would like to store the text in.contentStore - to which you would like write the stream.DuraCloudRuntimeExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void writeLine(String line) throws IOException
line - DuraCloudRuntimeExceptionIOExceptionpublic void write(String line) throws IOException
write in class WriterIOExceptionprotected void finalize()
throws Throwable
public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionCopyright © 2009–2016 DuraSpace. All rights reserved.