java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
com.aoapps.servlet.NullServletOutputStream
- All Implemented Interfaces:
NoClose
,Closeable
,Flushable
,AutoCloseable
Discards all data.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
static NullServletOutputStream
boolean
isReady()
void
print
(boolean b) void
print
(char c) void
print
(double d) void
print
(float f) void
print
(int i) void
print
(long l) void
void
println()
void
println
(boolean b) void
println
(char c) void
println
(double d) void
println
(float f) void
println
(int i) void
println
(long l) void
void
void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Method Details
-
getInstance
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNoClose
- Overrides:
close
in classOutputStream
-
flush
public void flush()- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
-
write
public void write(byte[] b) - Overrides:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-
write
public void write(int b) - Specified by:
write
in classOutputStream
-
print
- Overrides:
print
in classServletOutputStream
-
print
public void print(boolean b) - Overrides:
print
in classServletOutputStream
-
print
public void print(char c) - Overrides:
print
in classServletOutputStream
-
print
public void print(int i) - Overrides:
print
in classServletOutputStream
-
print
public void print(long l) - Overrides:
print
in classServletOutputStream
-
print
public void print(float f) - Overrides:
print
in classServletOutputStream
-
print
public void print(double d) - Overrides:
print
in classServletOutputStream
-
println
public void println()- Overrides:
println
in classServletOutputStream
-
println
- Overrides:
println
in classServletOutputStream
-
println
public void println(boolean b) - Overrides:
println
in classServletOutputStream
-
println
public void println(char c) - Overrides:
println
in classServletOutputStream
-
println
public void println(int i) - Overrides:
println
in classServletOutputStream
-
println
public void println(long l) - Overrides:
println
in classServletOutputStream
-
println
public void println(float f) - Overrides:
println
in classServletOutputStream
-
println
public void println(double d) - Overrides:
println
in classServletOutputStream
-
isReady
public boolean isReady()- Specified by:
isReady
in classServletOutputStream
-
setWriteListener
- Specified by:
setWriteListener
in classServletOutputStream
-