javaFlacEncoder
Class FLAC_ConsoleFileEncoder

java.lang.Object
  extended by javaFlacEncoder.FLAC_ConsoleFileEncoder

public class FLAC_ConsoleFileEncoder
extends java.lang.Object

FLAC_ConsoleFileEncoder is the command line interface to this FLAC encoder. It accepts several flags and parameters to alter the encoding configuration.

Author:
Preston Lacey

Field Summary
static java.lang.String HELP
          flag to display help
static java.lang.String MAX_BLOCK
          flag to specify maximum block size.
static java.lang.String MAX_BLOCK_ERROR
          Error message given for incorrect maximum block size specified
static java.lang.String MAX_LPC
          flag to specify maximum LPC order to use.
static java.lang.String MAX_LPC_ERROR
          Error message given for incorrect maximum LPC order given
static java.lang.String MIN_BLOCK
          flag to specify minimum block size.
static java.lang.String MIN_BLOCK_ERROR
          Error message given for incorrect minimum block size specified
static java.lang.String MIN_LPC
          flag to specify minimum LPC order to use.
static java.lang.String MIN_LPC_ERROR
          Error message given for incorrect minimum LPC order given
static java.lang.String SUBFRAME_TYPE
          flag to specify subframe type to use.
static java.lang.String THREADS
          flag to specify whether to use threads.
static java.lang.String THREADS_ERROR
          Error message given for incorrect specification of Thread usage
static java.lang.String TYPE_EXHAUSTIVE
          Exhaustive Subframe type identifier string(tells encoder to try each subframe type and choose the smallest one
static java.lang.String TYPE_FIXED
          Fixed Subframe type identifier string
static java.lang.String TYPE_LPC
          LPC Subframe type identifier string
static java.lang.String TYPE_VERBATIM
          Verbatime subframe type identifier string
 
Constructor Summary
FLAC_ConsoleFileEncoder(java.lang.String[] args)
          Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          Run ConsoleFileEncoder with given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HELP

public static java.lang.String HELP
flag to display help


MIN_BLOCK

public static java.lang.String MIN_BLOCK
flag to specify minimum block size. An integer must follow


MAX_BLOCK

public static java.lang.String MAX_BLOCK
flag to specify maximum block size. An integer must follow


MIN_LPC

public static java.lang.String MIN_LPC
flag to specify minimum LPC order to use. An integer must follow


MAX_LPC

public static java.lang.String MAX_LPC
flag to specify maximum LPC order to use. An integer must follow


THREADS

public static java.lang.String THREADS
flag to specify whether to use threads. Must follow by a zero(no threads) or a one(use threads)


SUBFRAME_TYPE

public static java.lang.String SUBFRAME_TYPE
flag to specify subframe type to use. Must be followed by a valid type as given by the fields TYPE_*.


TYPE_LPC

public static java.lang.String TYPE_LPC
LPC Subframe type identifier string


TYPE_FIXED

public static java.lang.String TYPE_FIXED
Fixed Subframe type identifier string


TYPE_EXHAUSTIVE

public static java.lang.String TYPE_EXHAUSTIVE
Exhaustive Subframe type identifier string(tells encoder to try each subframe type and choose the smallest one


TYPE_VERBATIM

public static java.lang.String TYPE_VERBATIM
Verbatime subframe type identifier string


MIN_BLOCK_ERROR

public static final java.lang.String MIN_BLOCK_ERROR
Error message given for incorrect minimum block size specified


MAX_BLOCK_ERROR

public static final java.lang.String MAX_BLOCK_ERROR
Error message given for incorrect maximum block size specified


MIN_LPC_ERROR

public static final java.lang.String MIN_LPC_ERROR
Error message given for incorrect minimum LPC order given

See Also:
Constant Field Values

MAX_LPC_ERROR

public static final java.lang.String MAX_LPC_ERROR
Error message given for incorrect maximum LPC order given

See Also:
Constant Field Values

THREADS_ERROR

public static final java.lang.String THREADS_ERROR
Error message given for incorrect specification of Thread usage

Constructor Detail

FLAC_ConsoleFileEncoder

public FLAC_ConsoleFileEncoder(java.lang.String[] args)
Constructor. Uses given arguments to immediately attempts to encode the file given. Uses stdout and stderr for notices of progress and error.

Parameters:
args - Encoding arguments to use.
Method Detail

main

public static void main(java.lang.String[] args)
Run ConsoleFileEncoder with given arguments.

Parameters:
args - Arguments for encoding.