Module org.tquadrat.foundation.util
Package org.tquadrat.foundation.util
Class IOUtils.NullAppendable
java.lang.Object
org.tquadrat.foundation.util.IOUtils.NullAppendable
- All Implemented Interfaces:
Appendable
- Enclosing class:
IOUtils
@ClassVersion(sourceVersion="$Id: IOUtils.java 1092 2024-02-01 22:49:38Z tquadrat $")
@API(status=STABLE,
since="0.1.0")
public static class IOUtils.NullAppendable
extends Object
implements Appendable
This implementation of an
Appendable
just swallows any data that is written to it, like the /dev/null
device of a Unix or Linux machine, or NUL:
on Windows. This class
might be useful if an Appendable
is required from the API, but
not applicable from the application logic.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: IOUtils.java 1092 2024-02-01 22:49:38Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.util.IOUtils.NullAppendable"
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Appendable
append
(char c) Appends the specified character to this Appendable; in fact, it does nothing.final Appendable
append
(CharSequence csq) Appends the specified character sequence to this Appendable.final Appendable
append
(CharSequence csq, int start, int end) Appends a subsequence of the specified character sequence to this Appendable.
-
Constructor Details
-
NullAppendable
public NullAppendable()Creates a new instance ofNullAppendable
.
-
-
Method Details
-
append
Appends the specified character sequence to this Appendable. In fact, it does nothing.- Specified by:
append
in interfaceAppendable
- Parameters:
csq
-- Throws:
IOException
-
append
Appends a subsequence of the specified character sequence to this Appendable. In fact, it does nothing.- Specified by:
append
in interfaceAppendable
- Parameters:
csq
-- Throws:
IOException
-
append
Appends the specified character to this Appendable; in fact, it does nothing.- Specified by:
append
in interfaceAppendable
- Parameters:
c
-- Throws:
IOException
-