PublisherClient
Class PublisherClient.SelectArchive

java.lang.Object
  |
  +--PublisherClient.PublisherClient.SelectArchive

class PublisherClient.SelectArchive
extends java.lang.Object
implements java.awt.event.ActionListener

Uses a JFileChooser to select the archive to publish.


Constructor Summary
(package private) PublisherClient.SelectArchive()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Retrieves the archive to publish with the JFileChooser. Checks the archive is not yet published with PublisherServer. Read the archive. Sends the archive to the PublisherServer.
(package private)  byte[] readFile(java.lang.String fileName, int fileLength)
          Read from disk the file to publish.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

PublisherClient.SelectArchive

PublisherClient.SelectArchive()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
  1. Retrieves the archive to publish with the JFileChooser.
  2. Checks the archive is not yet published with PublisherServer.
  3. Read the archive.
  4. Sends the archive to the PublisherServer.
    1. Specified by:
      actionPerformed in interface java.awt.event.ActionListener

readFile

byte[] readFile(java.lang.String fileName,
                int fileLength)
Read from disk the file to publish.
Parameters:
fileName - location of file to publish.
fileLength - length of file to publish.
Returns:
null failure or byte array with file content.