public class ServiceLogColoredPrintStream extends PrintStream
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceLogColoredPrintStream.Builder |
out| Modifier and Type | Method and Description |
|---|---|
protected List<byte[]> |
getTokens(byte[] buf,
int off,
int len)
Splits the current buffer into tokens; the criteria for splitting consists in considering each new line as a
token and everything else as another token.
|
void |
write(byte[] buf,
int off,
int len)
Prints the data with properly colored background and foreground; takes care of adding a line header to each line
|
void |
write(int b) |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setErrorwriteprotected List<byte[]> getTokens(byte[] buf, int off, int len) throws IOException
buf - the data.off - the start offset in the data.len - the number of bytes to write.IOException - in case something goes wrong while managing streams internallypublic void write(int b)
write in class PrintStreampublic void write(byte[] buf,
int off,
int len)
write in class PrintStreambuf - the data.off - the start offset in the data.len - the number of bytes to write.Copyright © 2025. All rights reserved.