java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.func.client.ClientSendFile

public class ClientSendFile extends Object
Implements some specialised file methods for sending file data back to the Perforce server. May be refactored into other classes later when the scope of the methods here is clearer -- HR.
  • Field Details

  • Constructor Details

    • ClientSendFile

      protected ClientSendFile(Properties props)
      Create a new rpc file sender
      Parameters:
      props - props
  • Method Details

    • sendFile

      protected RpcPacketDispatcher.RpcPacketDispatcherResult sendFile(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String,Object> resultsMap) throws ConnectionException
      Send a file's contents back to the Perforce server. Notably assumes a late model server...

      FIXME: digest stuff is not yet implemented -- HR. FIXME: error handling is typically nearly non-existent -- HR. FIXME: charset issues -- HR. FIXME: rework to use proper flush protocol implementation -- HR.

      Parameters:
      rpcConnection - rpcConnection
      cmdEnv - cmdEnv
      resultsMap - resultsMap
      Returns:
      - result
      Throws:
      ConnectionException - on error