|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.eclipse.smila.objectstore.StoreOutputStream
org.eclipse.smila.objectstore.filesystem.SimpleStoreOutputStream
public class SimpleStoreOutputStream
Simple StoreOutputStream implementation.
Intermediate content is stored in a temporary directory but will not be visible until close() is called.
| Constructor Summary | |
|---|---|
SimpleStoreOutputStream(java.io.File tempFile,
java.io.File finalFile,
boolean fileLocking)
constructs a SimpleStoreOutputStream. |
|
| Method Summary | |
|---|---|
void |
abort()
abort the object written to. |
void |
close()
|
void |
flush()
|
protected boolean |
makeFileVisible()
Makes file visible by copying it from the hidden store to the visible one and removing the shadow file. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleStoreOutputStream(java.io.File tempFile,
java.io.File finalFile,
boolean fileLocking)
throws java.io.FileNotFoundException
java.io.FileNotFoundException| Method Detail |
|---|
public void abort()
OutputStream.close() to prevent the object from becoming visible in
the store. After aborting the object, no further write operations are possible.
abort in class StoreOutputStream
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException
protected boolean makeFileVisible()
throws java.io.IOException
java.io.IOException - operation failed
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||