Package Torello.Java.Additional
Class NOPRINT
- java.lang.Object
-
- Torello.Java.Additional.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, Javajava.lang.Appendable
interface, providing additional features and improvements to it. TheAppendable
interace is a viable design-decsion possibility for outputing text-data to a log.
AnAppendable
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 toAppendable
:
Simply allows the user to provide a 'DeafAppendable
' to code that requires a non-null instance ofAppendable
. This class has nopublic
constructors, and provides, instead, a singleton instance that simply ignores all character-data that it receives via itsappend(...)
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 JavaAppendable
; note that thisAppendable
can be tapped, allowing for saving text-output, without printing it. This class acts as a dummy output instance ofjava.lang.Appendable
. It does not print any actual text, either to external output (terminal-output), nor to internalStringBuffer's
.
This class does not have any externalized (public
) constructors. Instead, apublic, static, final, 'singleton'
field-instance of this class is available. Please see field 'np'.
Hi-Lited Source-Code:- View Here: Torello/Java/Additional/NOPRINT.java
- Open New Browser-Tab: Torello/Java/Additional/NOPRINT.java
File Size: 1,557 Bytes Line Count: 46 '\n' Characters Found
-
-
Constructor Detail
-
NOPRINT
protected 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 interfacejava.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 interfacejava.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 interfacejava.lang.Appendable
- Parameters:
c
- Dummy input. Ignored, completely.- Returns:
'this'
instance is returned.- Code:
- Exact Method Body:
return this;
-
-