Class CPSPauser

  • All Implemented Interfaces:

    
    public class CPSPauser
    
                        

    Generate appropriate pauses for a given CPS (characters per second)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CPSPauser(int cps) Create a pauser with the appropriate speed settings.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void pause(int bytes) Pause for an appropriate time according to the number of bytes being transferred.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CPSPauser

        CPSPauser(int cps)
        Create a pauser with the appropriate speed settings.
        Parameters:
        cps - CPS to emulate
    • Method Detail

      • pause

         void pause(int bytes)

        Pause for an appropriate time according to the number of bytes being transferred.

        Parameters:
        bytes - number of bytes being transferred