Class NOPRINT

  • All Implemented Interfaces:
    java.lang.Appendable

    public class NOPRINT
    extends java.lang.Object
    implements java.lang.Appendable
    Appendable Implementation:
    This class implements and upgrades the Simple, Java java.lang.Appendable interface, providing additional features and improvements to it. The Appendable interace is a viable design-decsion possibility for outputing text-data to a log.

    An Appendable is both blindingly easy, and highly customizable to use for third-party developers who may not be familiar with the internals of another developer's source-code.

    This Class' Primary Addition to Appendable:
    Simply allows the user to provide a 'Deaf Appendable' to code that requires a non-null instance of Appendable. This class has no public constructors, and provides, instead, a singleton instance that simply ignores all character-data that it receives via its append(...) methods.

    Note that this class is no longer used in the Java-HTML JAR.
    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. 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 Constructor
      protected NOPRINT()
    • 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.
    • 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;