android.support.v4.util
Class LogWriter

java.lang.Object
  extended by java.io.Writer
      extended by 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.


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
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.io.Writer
append, append, append, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.