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 org.duracloud.common.error.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.org.duracloud.common.error.DuraCloudRuntimeException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void writeLine(String line) throws IOException
line
- org.duracloud.common.error.DuraCloudRuntimeException
IOException
public void write(String line) throws IOException
write
in class Writer
IOException
protected void finalize() throws Throwable
public void write(char[] cbuf, int off, int len) throws IOException
write
in class Writer
IOException
Copyright © 2009-2012 DuraSpace. All Rights Reserved.