Class NOPRINT

  • All Implemented Interfaces:
    java.lang.Appendable

    public class NOPRINT
    extends java.lang.Object
    implements java.lang.Appendable
    This class is used to shunt text-output sent to a Java Appendable; note that this Appendable can be tapped, allowing for saving text-output, without printing it.

    Helper Class for Torello.Java.OSResponse

    This class primarily functions as a support role to OSResponse (which in turn is a data-output class for: Shell, Shell.XL and the GCP Shell Class GSUTIL ).

    If the methods in this class do not appear to be 'generally applicable utilities' that is because they are specifically tailored to reading Process-Output (Standard-Out & Standard-Error) from Operating System calls.

    The four helpers for OSResponse are: AppendableTap, Completed, ISPT and NOPRINT

    This class acts as a dummy output instance of java.lang.Appendable. It does not print any actual text, either to external output (terminal-output), nor to internal StringBuffer's.

    This class does not have any externalized (public) constructors. Instead, a public, static, final, 'singleton' field-instance of this class is available. Please see field 'np'.


    • Field Summary

       
      Singleton Instance
      Modifier and Type Field
      static NOPRINT np
    • Constructor Summary

      Constructors 
      Modifier Description
      protected  
    • Method Summary

       
      Methods: interface java.lang.Appendable
      Modifier and Type Method
      Appendable append​(char c)
      Appendable append​(CharSequence cs)
      Appendable append​(CharSequence cs, int start, int end)
      • Methods inherited from class java.lang.Object

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

      • np

        🡇    
        public static final NOPRINT np
        This is the externalized, singleton instance of this class. This class does not have any public constructors.
        Code:
        Exact Field Declaration Expression:
        public static final NOPRINT np = new NOPRINT();
        
    • Method Detail

      • append

        🡅  🡇    
        public java.lang.Appendable append​(java.lang.CharSequence cs,
                                           int start,
                                           int end)
        Does nothing. Returns 'this' instance.
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        cs - Dummy input. Ignored, completely.
        start - Dummy input. Ignored, completely.
        end - dummy input. Ignored, completely.
        Returns:
        'this' instance is returned.
        Code:
        Exact Method Body:
         return this;
        
      • append

        🡅  🡇    
        public java.lang.Appendable append​(java.lang.CharSequence cs)
        Does nothing. Return 'this' instance.
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        cs - dummy input. Ignored.
        Returns:
        'this' instance is returned.
        Code:
        Exact Method Body:
         return this;
        
      • append

        🡅    
        public java.lang.Appendable append​(char c)
        Does nothing. Returns 'this' instance.
        Specified by:
        append in interface java.lang.Appendable
        Parameters:
        c - Dummy input. Ignored, completely.
        Returns:
        'this' instance is returned.
        Code:
        Exact Method Body:
         return this;