|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.logging.util.LoggerStream
@Deprecated public class 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
Deprecated. Default size, in bytes, of data flushed to Output Stream target. |
Constructor Summary | |
---|---|
LoggerStream(LoggerInterface log,
java.lang.String context,
int priority)
Deprecated. Constructor. |
Method Summary | |
---|---|
void |
close()
Deprecated. Close the LoggerStream. |
void |
flush()
Deprecated. Flush data contained in the LoggerStream. |
int |
getBufferSize()
Deprecated. Get the size of the LoggerStream buffer. |
void |
setBufferSize(int bufferSize)
Deprecated. Set the size of the LoggerStream buffer. |
void |
write(byte[] b)
Deprecated. Write a byte array to the LoggerStream. |
void |
write(byte[] b,
int offset,
int length)
Deprecated. Write a byte array to the LoggerStream. |
void |
write(int i)
Deprecated. Write to the LoggerStream. |
Field Detail |
---|
public static final int DEFAULT_BUFFER_SIZE
Constructor Detail |
---|
public LoggerStream(LoggerInterface log, java.lang.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 interface java.io.Closeable
close
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void write(byte[] b)
write
in class java.io.OutputStream
b
- byte array to write.public void write(byte[] b, int offset, int length)
write
in class java.io.OutputStream
b
- 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 java.io.OutputStream
i
- int written as a character to the LoggerStream.public int getBufferSize()
public void setBufferSize(int bufferSize)
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |