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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CommandLineInterpreter
public CommandLineInterpreter()
- This constructor always throws an exception.
CommandLineInterpreter
public CommandLineInterpreter(java.lang.String sURL)
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
retrieveFileFromServer
protected long retrieveFileFromServer(DownloadFileIdentifier id,
SJResponse response)
throws java.io.IOException,
SourceJammerConnectionException
- Returns temp file id.
sendFileToServer
protected long sendFileToServer(java.io.File fl,
SJRequest request)
throws java.io.IOException,
SourceJammerConnectionException