Package org.conscrypt
Class Logger.Stream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
org.conscrypt.Logger.Stream
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
- Enclosing class:
- Logger
public static class Logger.Stream extends PrintStream
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out -
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidendIndent()voidnewIndent()voidprint(byte[] data)voidprint(byte[] data, int offset, int len)voidprint(String msg)Prints a string to the target stream.voidprintAsHex(int perLine, String prefix, String delimiter, byte[] data)voidprintAsHex(int perLine, String prefix, String delimiter, byte[] data, int offset, int len)voidprintln(String msg)Prints a string followed by a newline.Methods inherited from class java.io.PrintStream
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, writeMethods inherited from class java.io.OutputStream
write
-
Constructor Details
-
Stream
-
-
Method Details
-
print
Description copied from class:PrintStreamPrints a string to the target stream. The string is converted to an array of bytes using the encoding chosen during the construction of this stream. The bytes are then written to the target stream withwrite(int).If an I/O error occurs, this stream's error state is set to
true.- Overrides:
printin classPrintStream- Parameters:
msg- the string to print to the target stream.- See Also:
PrintStream.write(int)
-
newIndent
public void newIndent() -
endIndent
public void endIndent() -
println
Description copied from class:PrintStreamPrints a string followed by a newline. The string is converted to an array of bytes using the encoding chosen during the construction of this stream. The bytes are then written to the target stream withwrite(int).If an I/O error occurs, this stream's error state is set to
true.- Overrides:
printlnin classPrintStream- Parameters:
msg- the string to print to the target stream.- See Also:
PrintStream.write(int)
-
print
public void print(byte[] data) -
print
public void print(byte[] data, int offset, int len) -
printAsHex
-
printAsHex
-