|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.journal.readerwriter.multicast.TransportOutputFile
public class TransportOutputFile
Title: TransportOutputFile.java
Description: A "renaming" journal file, for use by Transports.
When this file is created, a prefix is put on the filename to show that output is in progress. When the file is closed, it is renamed to remove the prefix.
| Constructor Summary | |
|---|---|
TransportOutputFile(java.io.File directory,
java.lang.String name)
Sture the filename, and the "in process" filename. |
|
| Method Summary | |
|---|---|
void |
close()
Close the writer and rename the file. |
java.lang.String |
getName()
Did somebody ask who we are? |
java.io.Writer |
open()
Create the file with its "in progress" filename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransportOutputFile(java.io.File directory,
java.lang.String name)
throws java.io.IOException
java.io.IOException - if either file already exists.| Method Detail |
|---|
public java.io.Writer open()
throws java.io.IOException
java.io.IOException
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||