Make your own free website on Tripod.com

Class StructuredCatalog

java.lang.Object
   |
   +----waba.io.Stream
           |
           +----waba.io.Catalog
                   |
                   +----StructuredCatalog

public class StructuredCatalog
extends Catalog

Variable Index

 o maxCharInLine

Constructor Index

 o StructuredCatalog(String)
Construct a new ObjectCatalog
 o StructuredCatalog(String, int)
Constructs a new ObjectCatalog

Method Index

 o closeMemo()
close the current memo
 o min(int, int)
a static function to return the minimum between two integers
 o openMemo(int)
open the memo number num
 o openMemo(String, int)
 o openMemo(String, int, int)
open the memo with the specified title
 o readLine()
 o readLine(int)
returns the next line (max char number specified)
 o readString(int)
returns a String with length fixed
 o readString(int, int)
returns a String from offset to length

Variables

 o maxCharInLine
  public static int maxCharInLine

Constructors

 o StructuredCatalog
  public StructuredCatalog(String name,
                           int type)
Constructs a new ObjectCatalog

Parameters:
name - the name of the catalog
type - the mode to open the catalog with
 o StructuredCatalog
  public StructuredCatalog(String name)
Construct a new ObjectCatalog

Parameters:
name - the name of the catalog

Methods

 o readString
  public String readString(int offset,
                           int length)
returns a String from offset to length

 o readString
  public String readString(int length)
returns a String with length fixed

 o readLine
  public String readLine(int maxLength)
returns the next line (max char number specified)

 o readLine
  public String readLine()
 o openMemo
  public boolean openMemo(int num)
open the memo number num

 o openMemo
  public boolean openMemo(String title,
                          int length,
                          int nbt)
open the memo with the specified title

 o openMemo
  public int openMemo(String title,
                      int length)
 o closeMemo
  public boolean closeMemo()
close the current memo

 o min
  public static int min(int a,
                        int b)
a static function to return the minimum between two integers