private static class EventWriter.SwitchOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
private LogOutputStream |
out
The delegation target for the OutputStream methods
|
| Constructor and Description |
|---|
SwitchOutputStream(LogOutputStream out)
Simple constructor that assigns the given argument to the
appropriate internal field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
setOutputStream(LogOutputStream out)
Sets the delegation target
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
private LogOutputStream out
public SwitchOutputStream(LogOutputStream out)
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void setOutputStream(LogOutputStream out)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.