Class ThreadIOImpl
java.lang.Object
org.apache.felix.gogo.runtime.threadio.ThreadIOImpl
- All Implemented Interfaces:
ThreadIO
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ThreadLocal<Marker>(package private) final Marker(package private) final ThreadPrintStream(package private) final ThreadInputStreamprivate static final Logger(package private) final ThreadPrintStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckIO()voidclose()Cancel the streams associated with the current thread.(package private) Markercurrent()voidsetStreams(InputStream in, PrintStream out, PrintStream err) Associate this streams with the current thread.voidstart()voidstop()
-
Field Details
-
log
-
defaultMarker
-
err
-
out
-
in
-
current
-
-
Constructor Details
-
ThreadIOImpl
public ThreadIOImpl()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
checkIO
private void checkIO() -
current
Marker current() -
close
public void close()Description copied from interface:ThreadIOCancel the streams associated with the current thread.This method will not do anything when no streams are associated.
-
setStreams
Description copied from interface:ThreadIOAssociate this streams with the current thread.Ensure that when output is performed on System.in, System.out, System.err it will happen on the given streams.
The streams will automatically be canceled when the bundle that has gotten this service is stopped or returns this service.
- Specified by:
setStreamsin interfaceThreadIO- Parameters:
in- InputStream to use for the current thread when System.in is usedout- PrintStream to use for the current thread when System.out is usederr- PrintStream to use for the current thread when System.err is used
-