java.lang.Object | |
↳ | org.apache.log4j.lf5.viewer.configure.MRUFileManager |
MRUFileManager handles the storage and retrival the most recently opened log files.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates the directory where the MRU file list will be written.
| |||||||||||
Returns a particular file name stored in a MRU file
list based on an index value.
| |||||||||||
Returns a input stream to the resource at the specified index
| |||||||||||
Gets the list of files stored in the MRU file list.
| |||||||||||
Moves the the index to the top of the MRU List
| |||||||||||
Saves a list of MRU files out to a file.
| |||||||||||
Adds a url to the MRU file list.
| |||||||||||
Adds a file name to the MRU file list.
| |||||||||||
Gets the size of the MRU file list.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets an input stream for the corresponding file.
| |||||||||||
Gets an input stream for the corresponding URL.
| |||||||||||
Loads the MRU file list in from a file and stores it in a LinkedList.
| |||||||||||
Adds an object to the mru.
| |||||||||||
Ensures that the MRU list will have a MaxSize.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates the directory where the MRU file list will be written. The "lf5" directory is created in the Documents and Settings directory on Windows 2000 machines and where ever the user.home variable points on all other platforms.
Returns a particular file name stored in a MRU file list based on an index value.
Returns a input stream to the resource at the specified index
FileNotFoundException | |
---|---|
IOException |
Gets the list of files stored in the MRU file list.
Moves the the index to the top of the MRU List
index | The index to be first in the mru list |
---|
Saves a list of MRU files out to a file.
Adds a url to the MRU file list.
Adds a file name to the MRU file list.
Gets the size of the MRU file list.
Gets an input stream for the corresponding file.
file | The file to create the input stream from. |
---|
FileNotFoundException | |
---|---|
IOException |
Gets an input stream for the corresponding URL.
url | The url to create the input stream from. |
---|
IOException |
---|
Loads the MRU file list in from a file and stores it in a LinkedList. If no file exists, a new LinkedList is created.
Adds an object to the mru.
Ensures that the MRU list will have a MaxSize.