SourceJammer 1.1.0 March 1, 2002
Copyright (c) 2001, 2002 Robert MacGrogan

org.sourcejammer.client.commandline
Class CommandLineInterpreter

java.lang.Object
  |
  +--org.sourcejammer.client.commandline.CommandLineInterpreter

public class CommandLineInterpreter
extends java.lang.Object

Primary class for interpreting and executing command line commands.


Inner Class Summary
static class CommandLineInterpreter.Delimiters
           
static class CommandLineInterpreter.FileTypes
           
static class CommandLineInterpreter.Implementations
           
 
Field Summary
static java.lang.String ALL_FILES_IN_DIR
           
static java.lang.String TERM_MESSAGE
           
static java.lang.String TO_PARENT_DIR
           
 
Constructor Summary
CommandLineInterpreter()
          This constructor always throws an exception.
CommandLineInterpreter(java.lang.String sURL)
           
 
Method Summary
 java.lang.String sendCommand(java.lang.String command)
           
protected  void updateProjectPointer()
           
protected  byte[] zipByteArrayIfNeeded(byte[] file, SJRequest request)
          Checks if a byte array about to be sent is larger than the minimum unzipped file size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TERM_MESSAGE

public static final java.lang.String TERM_MESSAGE

TO_PARENT_DIR

public static final java.lang.String TO_PARENT_DIR

ALL_FILES_IN_DIR

public static final java.lang.String ALL_FILES_IN_DIR
Constructor Detail

CommandLineInterpreter

public CommandLineInterpreter()
This constructor always throws an exception.

CommandLineInterpreter

public CommandLineInterpreter(java.lang.String sURL)
Method Detail

sendCommand

public java.lang.String sendCommand(java.lang.String command)

zipByteArrayIfNeeded

protected byte[] zipByteArrayIfNeeded(byte[] file,
                                      SJRequest request)
                               throws java.io.IOException
Checks if a byte array about to be sent is larger than the minimum unzipped file size. If so, zips the file and sets the flag in the SJRequest.

updateProjectPointer

protected void updateProjectPointer()
                             throws SourceJammerConnectionException

SourceJammer 1.1.0 March 1, 2002
Copyright (c) 2001, 2002 Robert MacGrogan