18#ifndef _DECAF_IO_OUTPUTSTREAM_H
19#define _DECAF_IO_OUTPUTSTREAM_H
47 OutputStream(
const OutputStream&);
48 OutputStream& operator=(
const OutputStream&);
81 virtual void write(
unsigned char c);
101 virtual void write(
const unsigned char* buffer,
int size);
127 virtual void write(
const unsigned char* buffer,
int size,
int offset,
int length);
153 return mutex.tryLock();
164 virtual void wait(
long long millisecs) {
165 mutex.wait(millisecs);
168 virtual void wait(
long long millisecs,
int nanos) {
169 mutex.wait(millisecs, nanos);
Interface for a class that implements the close method.
Definition Closeable.h:30
A Flushable is a destination of data that can be flushed.
Definition Flushable.h:34
virtual void doWriteArray(const unsigned char *buffer, int size)
virtual void wait(long long millisecs, int nanos)
Waits on a signal from this object, which is generated by a call to Notify.
Definition OutputStream.h:168
virtual void write(const unsigned char *buffer, int size, int offset, int length)
Writes an array of bytes to the output stream in order starting at buffer[offset] and proceeding unti...
virtual void notifyAll()
Signals the waiters on this object that it can now wake up and continue.
Definition OutputStream.h:176
virtual void unlock()
Unlocks the object.
Definition OutputStream.h:156
virtual std::string toString() const
Output a String representation of this object.
virtual void doWriteByte(unsigned char value)=0
virtual void write(const unsigned char *buffer, int size)
Writes an array of bytes to the output stream.
virtual void write(unsigned char c)
Writes a single byte to the output stream.
virtual void close()
Closes this object and deallocates the appropriate resources.The object is generally no longer usable...
virtual void notify()
Signals a waiter on this object that it can now wake up and continue.
Definition OutputStream.h:172
virtual void doWriteArrayBounded(const unsigned char *buffer, int size, int offset, int length)
virtual void wait()
Waits on a signal from this object, which is generated by a call to Notify.
Definition OutputStream.h:160
virtual bool tryLock()
Attempts to Lock the object, if the lock is already held by another thread than this method returns f...
Definition OutputStream.h:152
virtual void flush()
Flushes this stream by writing any buffered output to the underlying stream.
virtual void lock()
Locks the object.
Definition OutputStream.h:148
virtual void wait(long long millisecs)
Waits on a signal from this object, which is generated by a call to Notify.
Definition OutputStream.h:164
Mutex object that offers recursive support on all platforms as well as providing the ability to use t...
Definition Mutex.h:39
The interface for all synchronizable objects (that is, objects that can be locked and unlocked).
Definition Synchronizable.h:37
#define DECAF_API
Definition Config.h:29
Definition BlockingByteArrayInputStream.h:25
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25