u7
Class ESortUtils
java.lang.Object
|
+--u7.ESortUtils
- public class ESortUtils
- extends java.lang.Object
Method Summary |
static void |
convertToText(java.lang.String fname,
java.lang.String nName)
Converts file of Item objects into file that stores numbered lines
of the string representation of that objects. |
static int |
load(Item[] items,
java.io.ObjectInputStream ois)
Reads elements from the input stream into the buffer 'items'.
|
static Item |
readObject(java.io.ObjectInputStream ois)
Reads an Item object from the object input stream |
static void |
writeBuffer(java.io.ObjectOutputStream p,
Item[] items,
int iSize)
Saves the elements from the buffer 'items'. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ESortUtils
public ESortUtils()
convertToText
public static void convertToText(java.lang.String fname,
java.lang.String nName)
- Converts file of Item objects into file that stores numbered lines
of the string representation of that objects.
readObject
public static Item readObject(java.io.ObjectInputStream ois)
- Reads an Item object from the object input stream
load
public static int load(Item[] items,
java.io.ObjectInputStream ois)
- Reads elements from the input stream into the buffer 'items'.
Returns the number of elements that were loaded.
writeBuffer
public static void writeBuffer(java.io.ObjectOutputStream p,
Item[] items,
int iSize)
- Saves the elements from the buffer 'items'.
- Parameters:
iSize
- the number of elements to be saved.