net.sourceforge.neurosdbm
Class TextMode

java.lang.Object
  extended bynet.sourceforge.neurosdbm.TextMode
All Implemented Interfaces:
Listener

public class TextMode
extends java.lang.Object
implements Listener


Field Summary
private  Database database
           
private  int max
           
private static java.lang.String NOT_IMPLEMENTED
           
private  boolean quiet
           
private  java.io.BufferedReader reader
           
 
Constructor Summary
TextMode(boolean quiet)
           
 
Method Summary
 void add(java.util.List paths)
           
 void addPlaylist(java.util.List paths)
           
 void backup(java.lang.String directory)
           
 void clear()
           
 int getMaximum()
           
 int getMinimum()
           
 int getProgress()
           
 void list()
           
private  void print(java.lang.String message)
           
 void rebuild()
           
 void remove(java.util.List files)
           
 void restore(java.lang.String directory)
           
 void setMaximum(int max)
           
 void setMinimum(int min)
          Required by @see Listener interface.
 void setNote(java.lang.String note)
           
 void setProgress(int progress)
          Required by @see Listener interface.
 void sync()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_IMPLEMENTED

private static java.lang.String NOT_IMPLEMENTED

reader

private java.io.BufferedReader reader

database

private Database database

quiet

private boolean quiet

max

private int max
Constructor Detail

TextMode

public TextMode(boolean quiet)
         throws java.io.FileNotFoundException,
                java.io.IOException,
                DatabaseCorruptException,
                DatabaseDoesNotExistException,
                DatabaseInternalCorruptionException
Method Detail

setMinimum

public void setMinimum(int min)
Required by @see Listener interface. This will useful later when adding such features as a progress bar for text mode operation.

Specified by:
setMinimum in interface Listener

getMinimum

public int getMinimum()
Specified by:
getMinimum in interface Listener

setMaximum

public void setMaximum(int max)
Specified by:
setMaximum in interface Listener

getMaximum

public int getMaximum()
Specified by:
getMaximum in interface Listener

setProgress

public void setProgress(int progress)
Required by @see Listener interface. This will useful later when adding such features as a progress bar for text mode operation.

Specified by:
setProgress in interface Listener

getProgress

public int getProgress()
Specified by:
getProgress in interface Listener

setNote

public void setNote(java.lang.String note)
Specified by:
setNote in interface Listener

list

public void list()

sync

public void sync()
          throws java.io.IOException,
                 DatabaseInternalCorruptionException
Throws:
java.io.IOException
DatabaseInternalCorruptionException

add

public void add(java.util.List paths)
         throws java.io.IOException,
                DatabaseInternalCorruptionException
Throws:
java.io.IOException
DatabaseInternalCorruptionException

remove

public void remove(java.util.List files)

addPlaylist

public void addPlaylist(java.util.List paths)
                 throws java.io.IOException,
                        DatabaseInternalCorruptionException
Throws:
java.io.IOException
DatabaseInternalCorruptionException

clear

public void clear()
           throws java.io.IOException,
                  java.io.FileNotFoundException,
                  DatabaseCorruptException,
                  DatabaseInternalCorruptionException
Throws:
java.io.IOException
java.io.FileNotFoundException
DatabaseCorruptException
DatabaseInternalCorruptionException

rebuild

public void rebuild()
             throws DatabaseInternalCorruptionException,
                    DatabaseCorruptException,
                    java.io.FileNotFoundException,
                    java.io.IOException
Throws:
DatabaseInternalCorruptionException
DatabaseCorruptException
java.io.FileNotFoundException
java.io.IOException

backup

public void backup(java.lang.String directory)
            throws java.io.IOException,
                   java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

restore

public void restore(java.lang.String directory)

print

private void print(java.lang.String message)


Copyright © 2004 NeurosDBM Dev Team All Rights Reserved.