|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwriter.DeadAIMWriter
public class DeadAIMWriter
Writes files in the DeadAIM format. The file's name is determined by the date. This format is in HTML.
| Constructor Summary | |
|---|---|
DeadAIMWriter(java.lang.String name)
Initializes a new DeadAIMWriter object. |
|
| Method Summary | |
|---|---|
void |
addSession(Session session)
Adds a session to the file accessed via the filewriter. |
boolean |
closeFile()
Finishes up writing the file, adds ending tags, and closes the stream. |
static java.lang.String |
fileName(Session session)
Computes what the filename of log generated at the given date would be. |
static void |
main(java.lang.String[] args)
Used only to test this class. |
void |
makeFile(java.lang.String dir,
Session session)
Creates a new log file with the given Session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeadAIMWriter(java.lang.String name)
DeadAIMWriter object.
name - Name of "my screen name" in this conversation.| Method Detail |
|---|
public static java.lang.String fileName(Session session)
session - The Session associated with this file.
public void makeFile(java.lang.String dir,
Session session)
Creates a new log file with the given Session. This function
creates a new file with the name appropriate to the Date the
Session took place. It then adds the Session
to the created file.
If an I/O error occurs while adding the file, this method prints out an error message and returns without finishing the operation.
makeFile in interface Writerdir - Name of the containing directory.session - Data to store in the file.public void addSession(Session session)
session - The Session to write to the file.
java.lang.IllegalArgumentException - if the date passed in represents
a time different the date already associated with the
Session.public boolean closeFile()
true if the file was successfully closed. false otherwise.public static void main(java.lang.String[] args)
args - Command-line arguments.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||