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 |
---|
EventWriter.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 EventWriter.SwitchOutputStream(LogOutputStream out)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void setOutputStream(LogOutputStream out)
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.