me.escapeNT.pail
Class PailPersistance

java.lang.Object
  extended by me.escapeNT.pail.PailPersistance
All Implemented Interfaces:
Serializable

public class PailPersistance
extends Object
implements Serializable

Saves data relating to the current state of the plugin between reloads.

Author:
escapeNT
See Also:
Serialized Form

Field Summary
static File file
           
 
Constructor Summary
PailPersistance()
           
 
Method Summary
protected  String getConsoleText()
           
protected  Point getWindowLocation()
           
 PailPersistance load()
          Loads the saved data from file.
 void save(Point loc, String console)
          Saves the given information to a temporary file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

public static final File file
Constructor Detail

PailPersistance

public PailPersistance()
Method Detail

save

public void save(Point loc,
                 String console)
Saves the given information to a temporary file.

Parameters:
loc - The current window location.
console - The full console text since the server was started.

load

public PailPersistance load()
Loads the saved data from file.


getWindowLocation

protected Point getWindowLocation()
Returns:
the windowLocation

getConsoleText

protected String getConsoleText()
Returns:
the consoleText


Copyright © 2011. All Rights Reserved.