|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--com.sas.services.logging.util.LoggerStream
LoggerStream - used to create an output stream connected to a
Logging Service LoggerInterface.
Typically a LoggerInterface object is obtained from the
LoggingServiceInterface, and that LoggerInterface
object is passed to the constructor
for this class. The LoggerStream object is then used as an
OutputStream would normally be used. Information sent to
this LoggerStream will appear as Logging Service messages originating from the specified
LoggerInterface object.
| Field Summary | |
static int |
DEFAULT_BUFFER_SIZE
Default size, in bytes, of data flushed to Output Stream target. |
| Constructor Summary | |
LoggerStream(LoggerInterface log,
String context,
int priority)
Constructor. |
|
| Method Summary | |
void |
close()
Close the LoggerStream. |
void |
flush()
Flush data contained in the LoggerStream. |
int |
getBufferSize()
Get the size of the LoggerStream buffer. |
void |
setBufferSize(int bufferSize)
Set the size of the LoggerStream buffer. |
void |
write(byte[] b)
Write a byte array to the LoggerStream. |
void |
write(byte[] b,
int offset,
int length)
Write a byte array to the LoggerStream. |
void |
write(int i)
Write to the LoggerStream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_BUFFER_SIZE
| Constructor Detail |
public LoggerStream(LoggerInterface log,
String context,
int priority)
log - a LoggerInterface object that messages
will be logged on.context - logging context for messages logged.priority - level that messages will be reported at.| Method Detail |
public void close()
close in class OutputStreampublic void flush()
flush in class OutputStreampublic void write(byte[] b)
write in class OutputStreamb - byte array to write.
public void write(byte[] b,
int offset,
int length)
write in class OutputStreamb - byte array to write.offset - location in byte array of first byte to write.length - number of bytes to write. If offset plus length is greater
than the size of the byte array, then less than length bytes will be
written - only those in the byte array.public void write(int i)
write in class OutputStreami - int written as a character to the LoggerStream.public int getBufferSize()
public void setBufferSize(int bufferSize)
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||