|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.core.TableUtil
public final class TableUtil
Table file Utilities. These are helper functions for dealing with table files.
Method Summary | |
---|---|
static java.util.Map |
loadMap(java.io.File file)
Load a serialized Map from the given file. |
static java.util.Map |
loadMap(java.io.File file,
boolean displayError)
Load a serialized Map from the given url. |
static java.util.Map |
loadMap(java.lang.String s,
boolean displayError)
Load a serialized Map from the given String. |
static java.util.Map |
loadMap(java.net.URL url)
Load a serialized Map from the given url. |
static java.util.Map |
loadMap(java.net.URL url,
boolean displayError)
Load a serialized Map from the given url. |
static java.lang.Object |
loadObject(java.io.File file)
Load an object from a file using loadObject(Reader) |
static java.lang.Object |
loadObject(java.io.File file,
java.lang.String encoding)
Load an object from a file using loadObject(Reader) |
static java.lang.Object |
loadObject(java.io.Reader reader)
Load an object from a stream. |
static java.lang.Object |
loadObject(java.net.URL url)
Load an object from a URL using loadObject(Reader) |
static void |
main(java.lang.String[] args)
|
static boolean |
safeWriteObject(java.io.File file,
java.lang.Object object)
Writes an object to a file in safe way. |
static boolean |
writeObject(java.io.File file,
java.lang.Object object)
Write an object to a file. |
static boolean |
writeObject(java.io.OutputStream outputStream,
java.lang.Object object)
Write an object to an OutputStream. |
static boolean |
writeObject(java.io.PrintWriter printWriter,
java.lang.Object object)
Write an object to a printWriter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Map loadMap(java.io.File file)
file
- the File to load the serialized Map from
public static java.util.Map loadMap(java.io.File file, boolean displayError)
file
- the File to load the serialized Map fromdisplayError
- if true and there are errors
deserializing the Map, an error will be printed.
public static java.util.Map loadMap(java.net.URL url)
url
- the URL to load the serialized Map from
public static java.util.Map loadMap(java.net.URL url, boolean displayError)
url
- the URL to load the serialized Map fromdisplayError
- if true and there are errors
deserializing the Map, an error will be printed.
public static java.util.Map loadMap(java.lang.String s, boolean displayError)
s
- the String to load the serialized Map fromdisplayError
- if true and there are errors
deserializing the Map, an error will be printed.
public static java.lang.Object loadObject(java.net.URL url)
url
- the URL to load the object from
loadObject(Reader)
public static java.lang.Object loadObject(java.io.File file)
file
- the path for the file to load the object from
loadObject(Reader)
public static java.lang.Object loadObject(java.io.File file, java.lang.String encoding)
file
- the path for the file to load the object fromencoding
- the encoding used for file reader
loadObject(Reader)
public static java.lang.Object loadObject(java.io.Reader reader) throws java.io.IOException
reader
- the source for the Object's data
java.io.IOException
- if there was an error deserializing the
object.public static boolean safeWriteObject(java.io.File file, java.lang.Object object)
writeObject
but it actually uses the FileReplacer
to be more robust.
file
- the path for a file to write the object toobject
- the Object to serialize into the file
public static boolean writeObject(java.io.File file, java.lang.Object object)
file
- the path for a file to write the object toobject
- the Object to serialize into the file
public static boolean writeObject(java.io.OutputStream outputStream, java.lang.Object object)
outputStream
- the OutputStream to write the object toobject
- the Object to serialize into the file
public static boolean writeObject(java.io.PrintWriter printWriter, java.lang.Object object)
printWriter
- the PrintWriter to write the object toobject
- the Object to serialize into the file
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |