net.sourceforge.neurosdbm
Class TextMode
java.lang.Object
net.sourceforge.neurosdbm.TextMode
- All Implemented Interfaces:
- Listener
- public class TextMode
- extends java.lang.Object
- implements Listener
Constructor Summary |
TextMode(boolean quiet)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
TextMode
public TextMode(boolean quiet)
throws java.io.FileNotFoundException,
java.io.IOException,
DatabaseCorruptException,
DatabaseDoesNotExistException,
DatabaseInternalCorruptionException
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.