| com.caucho.log.TimestampFilter
TimestampFilter | public class TimestampFilter extends StreamImpl (Code) | | Automatically-rotating streams. Normally, clients will call
getStream instead of using the StreamImpl interface.
|
Inner Class :static class TimestampBase | |
Inner Class :static class Text extends TimestampBase | |
Inner Class :static class Code extends TimestampBase | |
Inner Class :static class ThreadTimestamp extends TimestampBase | |
Inner Class :static class EnvTimestamp extends TimestampBase | |
Method Summary | |
public boolean | canWrite() Returns true if the stream can write. | public void | close() Flushes the data. | public void | flush() Flushes the data. | public Path | getPath() | public void | setStream(WriteStream stream) | public void | setTimestamp(String timestamp) | public void | write(byte[] buffer, int offset, int length, boolean isEnd) Write data to the stream. |
TimestampFilter | public TimestampFilter()(Code) | | Create listener.
Parameters: path - underlying log path |
TimestampFilter | public TimestampFilter(WriteStream out, String timestamp)(Code) | | Create listener.
Parameters: path - underlying log path |
canWrite | public boolean canWrite()(Code) | | Returns true if the stream can write.
|
getPath | public Path getPath()(Code) | | |
setStream | public void setStream(WriteStream stream)(Code) | | |
setTimestamp | public void setTimestamp(String timestamp)(Code) | | |
write | public void write(byte[] buffer, int offset, int length, boolean isEnd) throws IOException(Code) | | Write data to the stream.
|
|
|