|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
it.could.webdav.DAVOutputStream
A specialized OutputStream
to write to DAVResource
s.
When writing to this OutputStream
the data will be written to
a temporary file. This temporary file will be moved to its final destination
(the original file identifying the resource) when the close()
method is called.
This specialized OutputStream
never throws IOException
s,
but rather relies on the unchecked DAVException
to notify the
framework of the correct DAV errors.
Constructor Summary | |
protected |
DAVOutputStream(DAVResource resource)
Create a new DAVOutputStream instance. |
Method Summary | |
void |
abort()
Abort any data written to the temporary file and delete it. |
void |
close()
Close this OutputStream renaming
the temporary file to the original one. |
void |
finalize()
Finalize this DAVOutputStream instance. |
void |
flush()
Flush any unwritten data to the disk. |
protected void |
rename(File temporary,
File original)
Rename the temporary File to the original one. |
void |
write(byte[] b)
Write data to this OutputStream . |
void |
write(byte[] b,
int o,
int l)
Write data to this OutputStream . |
void |
write(int b)
Write data to this OutputStream . |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DAVOutputStream(DAVResource resource)
Create a new DAVOutputStream
instance.
Method Detail |
protected void rename(File temporary, File original) throws IOException
Rename the temporary File
to the original one.
IOException
public void abort()
Abort any data written to the temporary file and delete it.
public void close()
Close this OutputStream
renaming
the temporary file to the original
one.
public void flush()
Flush any unwritten data to the disk.
public void write(int b)
Write data to this OutputStream
.
public void write(byte[] b)
Write data to this OutputStream
.
public void write(byte[] b, int o, int l)
Write data to this OutputStream
.
public void finalize()
Finalize this DAVOutputStream
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |