|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.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(File directory,
String name)
Sture the filename, and the "in process" filename. |
|
| Method Summary | |
|---|---|
void |
close()
Close the writer and rename the file. |
String |
getName()
Did somebody ask who we are? |
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(File directory,
String name)
throws IOException
IOException - if either file already exists.| Method Detail |
|---|
public Writer open()
throws IOException
IOException
public void close()
throws IOException
IOExceptionpublic String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||