Package common.files

Examples of common.files.SerializableFile


public class GetInfoHandler extends AbstractServerHandler
{
  public void execute(ClientConnection connection, ObjectInputStream is,
      ObjectOutputStream os) throws IOException, ClassNotFoundException
  {
    SerializableFile file = (SerializableFile) is.readObject();
    IndexedFile indexedFile = getFileManager().retrieveIndexedFile(file);

    os.write(ClientServerProtocol.PROTOCOL_FILES);
    if (indexedFile == null)
    {
View Full Code Here


public class DelFileHandler extends AbstractServerHandler
{
  public void execute(ClientConnection connection, ObjectInputStream is,
      ObjectOutputStream os) throws IOException, ClassNotFoundException
  {
    SerializableFile file = (SerializableFile) is.readObject();
    getFileManager().removeSharedFile(file, connection.getClientId());
  }
View Full Code Here

public class AddFileHandler extends AbstractServerHandler
{
  public void execute(ClientConnection connection, ObjectInputStream is,
      ObjectOutputStream os) throws IOException, ClassNotFoundException
  {
    SerializableFile file = (SerializableFile) is.readObject();
    getFileManager().addSharedFile(file, connection.getClientId());
  }
View Full Code Here

public class GetSourcesHandler extends AbstractServerHandler
{
  public void execute(ClientConnection connection, ObjectInputStream is,
      ObjectOutputStream os) throws IOException, ClassNotFoundException
  {
    SerializableFile requestedFile = (SerializableFile) is.readObject();
    boolean addClientAsSource = is.readBoolean();

    IndexedFile serverFile = getFileManager().retrieveIndexedFile(requestedFile);

    if (serverFile == null)
View Full Code Here

TOP

Related Classes of common.files.SerializableFile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.