com.oziexplorer
Class RouteFile

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<T>
              extended by com.oziexplorer.DataFile<Route>
                  extended by com.oziexplorer.RouteFile
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Route>, Collection<Route>, List<Route>, RandomAccess

public class RouteFile
extends DataFile<Route>

Read and write OziExplorer route files.

See Also:
Serialized Form

Field Summary
protected  String datum
          The track datum.
protected  int reserved1
          Reserved field one - unknown use.
protected  int reserved2
          Reserved field two - unknown use.
 
Fields inherited from class com.oziexplorer.DataFile
C, L, SepRE, T
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
RouteFile()
          Create a new route file reader/writer.
 
Method Summary
 void clear()
          Clear any current contents of the route.
 String getDatum()
          Get the route datum.
 int getReserved1()
          Get the value of the first reserved field.
 int getReserved2()
          Get the value of the second reserved field.
 void read(File file)
          Read a route from the specified File.
 void read(InputStream input)
          Read a route from the specified InputStream.
 void read(String file)
          Read a route from the specified file.
 void setDatum(String datum)
          Set the route datum.
 void setReserved1(int reserved1)
          Set the value of the first reserved field.
 void setReserved2(int reserved2)
          Set the value of the second reserved field.
 void write(File file)
          Write a route to the specified File.
 void write(OutputStream output)
          Write a route to the specified OutputStream.
 void write(String file)
          Write a route to the specified file.
 
Methods inherited from class com.oziexplorer.DataFile
calendarToOziDate, escapeCommas, getDate, getDouble, getInt, getString, newOziException, newOziException, newScanner, oziDateToCalendar, skipNext, unescapeCommas
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

datum

protected String datum
The track datum.


reserved1

protected int reserved1
Reserved field one - unknown use.


reserved2

protected int reserved2
Reserved field two - unknown use.

Constructor Detail

RouteFile

public RouteFile()
Create a new route file reader/writer.

Method Detail

clear

public void clear()
Clear any current contents of the route.

Specified by:
clear in interface Collection<Route>
Specified by:
clear in interface List<Route>
Overrides:
clear in class ArrayList<Route>

read

public void read(File file)
          throws OziException
Read a route from the specified File.

Parameters:
file - the file to read from.
Throws:
OziException - if there is a problem reading the file.

read

public void read(String file)
          throws OziException
Read a route from the specified file.

Parameters:
file - the file to read from.
Throws:
OziException - if there is a problem reading the file.

read

public void read(InputStream input)
          throws OziException
Read a route from the specified InputStream.

Parameters:
input - the input stream to read from.
Throws:
OziException - if there is a problem reading the file.

write

public void write(File file)
           throws OziException
Write a route to the specified File.

Parameters:
file - the file to write to.
Throws:
OziException - if there is a problem writing the file.

write

public void write(String file)
           throws OziException
Write a route to the specified file.

Parameters:
file - the file to write to.
Throws:
OziException - if there is a problem writing the file.

write

public void write(OutputStream output)
           throws OziException
Write a route to the specified OutputStream.

Parameters:
output - the input stream to write to.
Throws:
OziException - if there is a problem writing the file.

getDatum

public String getDatum()
Get the route datum.

Returns:
the route datum.

setDatum

public void setDatum(String datum)
Set the route datum.

Parameters:
datum - the route datum.

getReserved1

public int getReserved1()
Get the value of the first reserved field.

Returns:
the value of the first reserved field.

setReserved1

public void setReserved1(int reserved1)
Set the value of the first reserved field.

Parameters:
reserved1 - the value of the first reserved field.

getReserved2

public int getReserved2()
Get the value of the second reserved field.

Returns:
the value of the second reserved field.

setReserved2

public void setReserved2(int reserved2)
Set the value of the second reserved field.

Parameters:
reserved2 - the value of the second reserved field.