org.sourcejammer.server.plugin
Interface SJServerFileEvent

All Superinterfaces:
SJServerEvent
All Known Implementing Classes:
SJServerFileEventImpl

public interface SJServerFileEvent
extends SJServerEvent

Title: $FileName: SJServerFileEvent.java$

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

$Description: $
$KeyWordsOff: $

Nested Class Summary
static class SJServerFileEvent.Events
           
 
Method Summary
 int getEventType()
          Returns the event type int code (see the Events inner class).
 long getFileID()
          Returns id of file affected by this event.
 int getVersionNumber()
          Returns the version number that this event applies to.
 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.
 
Methods inherited from interface org.sourcejammer.server.plugin.SJServerEvent
getArchiveContext, getArchiveName, getLog, getOrigin, getRequest, getResponse, getTarget
 

Method Detail

getEventType

public int getEventType()
Returns the event type int code (see the Events inner class).


getFileID

public long getFileID()
Returns id of file affected by this event.


retrieveComment

public void retrieveComment(java.io.OutputStream stm)
                     throws FileAccessException
Streams the file's comment to the OutputStream.

FileAccessException

retrieveSource

public void retrieveSource(java.io.OutputStream stm)
                    throws FileAccessException
Streams the latest version's source (the file itself) to the OutputStream.

FileAccessException

getVersionNumber

public int getVersionNumber()
Returns the version number that this event applies to.



Copyright © 2003 Soucejammer project.