android.support.v4.util
Class LogWriter
java.lang.Object
java.io.Writer
android.support.v4.util.LogWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class LogWriter
- extends Writer
Helper for accessing features in android.util.LogWriter
introduced after API level 4 in a backwards compatible fashion.
Constructor Summary |
LogWriter(String tag)
Create a new Writer that sends to the log with the given priority
and tag. |
Method Summary |
void |
close()
|
void |
flush()
|
void |
write(char[] buf,
int offset,
int count)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogWriter
public LogWriter(String tag)
- Create a new Writer that sends to the log with the given priority
and tag.
- Parameters:
tag
- A string tag to associate with each printed log statement.
close
public void close()
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
flush
public void flush()
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
write
public void write(char[] buf,
int offset,
int count)
- Specified by:
write
in class Writer
Copyright © 2013 Marek Kedzierski. All Rights Reserved.