org.sourcejammer.server.event
Class SJServerFileEventImpl

java.lang.Object
  |
  +--org.sourcejammer.server.event.SJServerEventImpl
        |
        +--org.sourcejammer.server.event.SJServerFileEventImpl
All Implemented Interfaces:
SJServerEvent, SJServerFileEvent

public class SJServerFileEventImpl
extends SJServerEventImpl
implements SJServerFileEvent

Title: $FileName: SJServerFileEventImpl.java$

Version:
$VerNum: 7$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $

Nested Class Summary
 
Nested classes inherited from class org.sourcejammer.server.plugin.SJServerFileEvent
SJServerFileEvent.Events
 
Field Summary
private  java.io.File commentFile
           
private  int eventType
           
private  long fileID
           
private  java.io.File sourceFile
           
private  int versionNumber
           
 
Fields inherited from class org.sourcejammer.server.event.SJServerEventImpl
 
Constructor Summary
(package private) SJServerFileEventImpl()
           
 
Method Summary
 java.lang.String getCommentString()
           
 int getEventType()
          Returns the eventType.
 long getFileID()
          Returns the fileID.
 int getVersionNumber()
          Returns the versionNumber.
 void retrieveComment(java.io.OutputStream stm)
          Streams the file's comment to the OutputStream.
 void retrieveSource(java.io.OutputStream stm)
          Streams the latest version's source (the file itself) to the OutputStream.
 void setCommentFile(java.io.File commentFile)
          Sets the commentFile.
 void setEventType(int eventType)
          Sets the eventType.
 void setFileID(long fileID)
          Sets the fileID.
 void setSourceFile(java.io.File sourceFile)
          Sets the sourceFile.
 void setVersionNumber(int versionNumber)
          Sets the versionNumber.
 
Methods inherited from class org.sourcejammer.server.event.SJServerEventImpl
getArchiveContext, getArchiveName, getLog, getOrigin, getRequest, getResponse, getTarget, setArchiveContext, setArchiveName, setLog, setOrigin, setRequest, setResponse, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sourcejammer.server.plugin.SJServerEvent
getArchiveContext, getArchiveName, getLog, getOrigin, getRequest, getResponse, getTarget
 

Field Detail

eventType

private int eventType

fileID

private long fileID

commentFile

private java.io.File commentFile

sourceFile

private java.io.File sourceFile

versionNumber

private int versionNumber
Constructor Detail

SJServerFileEventImpl

SJServerFileEventImpl()
Method Detail

retrieveComment

public void retrieveComment(java.io.OutputStream stm)
                     throws FileAccessException
Description copied from interface: SJServerFileEvent
Streams the file's comment to the OutputStream.

Specified by:
retrieveComment in interface SJServerFileEvent
FileAccessException
See Also:
SJServerFileEvent.retrieveComment(OutputStream)

getCommentString

public java.lang.String getCommentString()
                                  throws FileAccessException
FileAccessException

retrieveSource

public void retrieveSource(java.io.OutputStream stm)
                    throws FileAccessException
Description copied from interface: SJServerFileEvent
Streams the latest version's source (the file itself) to the OutputStream.

Specified by:
retrieveSource in interface SJServerFileEvent
FileAccessException
See Also:
SJServerFileEvent.retrieveSource(OutputStream)

getEventType

public int getEventType()
Returns the eventType.

Specified by:
getEventType in interface SJServerFileEvent
Returns:
int

setEventType

public void setEventType(int eventType)
Sets the eventType.

Parameters:
eventType - The eventType to set

setCommentFile

public void setCommentFile(java.io.File commentFile)
Sets the commentFile.

Parameters:
commentFile - The commentFile to set

setSourceFile

public void setSourceFile(java.io.File sourceFile)
Sets the sourceFile.

Parameters:
sourceFile - The sourceFile to set

getVersionNumber

public int getVersionNumber()
Returns the versionNumber.

Specified by:
getVersionNumber in interface SJServerFileEvent
Returns:
int

setVersionNumber

public void setVersionNumber(int versionNumber)
Sets the versionNumber.

Parameters:
versionNumber - The versionNumber to set

getFileID

public long getFileID()
Returns the fileID.

Specified by:
getFileID in interface SJServerFileEvent
Returns:
long

setFileID

public void setFileID(long fileID)
Sets the fileID.

Parameters:
fileID - The fileID to set


Copyright 2003 Soucejammer project.