sam.core
Class Settings.Defaults

java.lang.Object
  |
  +--sam.core.Settings.Defaults
Enclosing class:
Settings

public static class Settings.Defaults
extends java.lang.Object

Central repository of various default values. These values are queried whenever a required field is not supplied directly by the user. A value of null means that no default value is provided and the user should be interactively prompted to supply one.


Field Summary
static java.io.File ARCHIVE
          Default archive name.
static int BLOCK_SIZE
          Default block size in kiloBytes.
static sam.cipher.Specification[] CIPHER_SPECIFICATIONS
          Default cipher stack.
static java.lang.String COMMENT
          Default comment.
static int HORIZONTAL_THREADS
          Default number of horizontal threads.
static int JAR_COMPRESSION_LEVEL
          Default Jar compression level Example: anything from 0 (no compression) to 9 (best and slowest compression).
static int LOG_LEVEL
          Default log level.
static java.lang.String LOG_PREFIX
          Prefix of all log messages.
static sam.io.Packer PACKER
          Default packer.
static java.io.File TEMPORARY_DIRECTORY
          Default temporary directory Might not be null
static java.lang.String TO_BE_ARCHIVED_FILES
          Default file specification for to-be-archived files.
static java.lang.String TO_BE_EXTRACTED_FILES
          Default file specification for to-be-extracted files.
static sam.io.Tracker TRACKER
          Default tracker.
static java.lang.String USER_INTERFACE
          Default user interface.
static int VERTICAL_THREADS
          Default number of vertical threads.
 
Constructor Summary
Settings.Defaults()
           
 
Method Summary
static java.lang.String TRACE(java.lang.String type)
          Gets the default trace for specific type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_INTERFACE

public static final java.lang.String USER_INTERFACE
Default user interface. Example: "basic" or null Currently "basic"

See Also:
Constant Field Values

ARCHIVE

public static final java.io.File ARCHIVE
Default archive name. Example: "MyArchive.jar" or null Currently null


LOG_LEVEL

public static final int LOG_LEVEL
Default log level. Example: anything between -1 and Settings.Constants.MAXIMUM_LOG_LEVEL Currently -1 (i.e. no logging at all)

See Also:
Constant Field Values

CIPHER_SPECIFICATIONS

public static sam.cipher.Specification[] CIPHER_SPECIFICATIONS
Default cipher stack. Example: null or new Specification[] { new Specification("Rijndael", "default password") } or even new Specification[] { new Specification("Rijndael") }


LOG_PREFIX

public static final java.lang.String LOG_PREFIX
Prefix of all log messages. This is usefull for output post-processing (grep or alike) Example: "Log" or null Currently none.


BLOCK_SIZE

public static final int BLOCK_SIZE
Default block size in kiloBytes. Example: anything from 0 (unlimited) to Settings.Constants.MAXIMUM_BLOCK_SIZE Currently 64

See Also:
Constant Field Values

PACKER

public static final sam.io.Packer PACKER
Default packer. Example: any valid Packer.get("name") or null Currently null


TRACKER

public static final sam.io.Tracker TRACKER
Default tracker. Example: any valid Tracker.get("name") or null Currently null


VERTICAL_THREADS

public static final int VERTICAL_THREADS
Default number of vertical threads. Example: anything above 1 Currently 1

See Also:
Constant Field Values

HORIZONTAL_THREADS

public static final int HORIZONTAL_THREADS
Default number of horizontal threads. Example: anything above 1 Currently 1

See Also:
Constant Field Values

COMMENT

public static final java.lang.String COMMENT
Default comment. Example: "This is a SAM archive" or null Currently null


TO_BE_ARCHIVED_FILES

public static final java.lang.String TO_BE_ARCHIVED_FILES
Default file specification for to-be-archived files. Example: "." (current directory), "*.java" or null Currently null

See Also:
Constant Field Values

TO_BE_EXTRACTED_FILES

public static final java.lang.String TO_BE_EXTRACTED_FILES
Default file specification for to-be-extracted files. Example: "." (current directory), "*.java" or null Currently null

See Also:
Constant Field Values

JAR_COMPRESSION_LEVEL

public static final int JAR_COMPRESSION_LEVEL
Default Jar compression level Example: anything from 0 (no compression) to 9 (best and slowest compression). Currently 9

See Also:
Constant Field Values

TEMPORARY_DIRECTORY

public static final java.io.File TEMPORARY_DIRECTORY
Default temporary directory Might not be null

Constructor Detail

Settings.Defaults

public Settings.Defaults()
Method Detail

TRACE

public static final java.lang.String TRACE(java.lang.String type)
Gets the default trace for specific type.

Parameters:
type - a single-word description of the trace type, e.g. "log" or "mismatching_files" In this implementation this always return null.
See Also:
sam.rules.UnixLikeSyntaxSet#makeWritableTrace