|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.gradle.logging.StandardOutputLoggingAdapter
class StandardOutputLoggingAdapter extends java.io.OutputStream
Constructor Summary | |
StandardOutputLoggingAdapter(Logger log, Level level)
Creates the OutputStream to flush to the given Category. |
|
StandardOutputLoggingAdapter(Logger log, Level level, int bufferLength)
Creates the OutputStream to flush to the given Category. |
Method Summary | |
---|---|
void
|
close()
Closes this output stream and releases any system resources associated with this stream. |
void
|
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
Level
|
getLevel()
|
Marker
|
getMarker()
|
void
|
setLevel(Level level)
|
void
|
setMarker(Marker marker)
|
void
|
write(int b)
Writes the specified byte to this output stream. |
Methods inherited from class java.io.OutputStream | |
---|---|
write, write, write, flush, close, hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Methods inherited from class java.lang.Object | |
---|---|
hashCode, getClass, equals, toString, wait, wait, wait, notify, notifyAll |
Constructor Detail |
---|
public StandardOutputLoggingAdapter(Logger log, Level level)
public StandardOutputLoggingAdapter(Logger log, Level level, int bufferLength)
Method Detail |
---|
public void close()
close
is that it closes the output stream. A closed stream cannot perform output operations and
cannot be reopened.
public void flush()
flush
is that calling it is an indication that, if any bytes previously written have been buffered
by the implementation of the output stream, such bytes should immediately be written to their intended
destination.
public Level getLevel()
public Marker getMarker()
public void setLevel(Level level)
public void setMarker(Marker marker)
public void write(int b)
write
is that one byte is
written to the output stream. The byte to be written is the eight low-order bits of the argument b
.
The 24 high-order bits of b
are ignored.
byte
to write
IOException
may be thrown if
the output stream has been closed.
Groovy Documentation