17#ifndef _DECAF_IO_WRITER_H
18#define _DECAF_IO_WRITER_H
44 Writer(
const Writer&);
45 Writer& operator=(
const Writer&);
71 virtual void write(
const std::vector<char>& buffer);
84 virtual void write(
const char* buffer,
int size);
102 virtual void write(
const char* buffer,
int size,
int offset,
int length);
112 virtual void write(
const std::string& str);
127 virtual void write(
const std::string& str,
int offset,
int length);
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 decaf::lang::Appendable & append(const decaf::lang::CharSequence *csq, int start, int end)
Appends a subsequence of the specified character sequence to this Appendable.
virtual decaf::lang::Appendable & append(char value)
Appends the specified character to this Appendable.
virtual void write(const char *buffer, int size)
Writes a byte array to the output stream.
virtual decaf::lang::Appendable & doAppendCharSequenceStartEnd(const decaf::lang::CharSequence *csq, int start, int end)
virtual void doWriteString(const std::string &str)
virtual decaf::lang::Appendable & doAppendChar(char value)
virtual void write(const std::vector< char > &buffer)
Writes an array of Chars.
virtual void doWriteVector(const std::vector< char > &buffer)
virtual void write(const char *buffer, int size, int offset, int length)
Writes a byte array to the output stream.
virtual void doWriteArray(const char *buffer, int size)
virtual void write(char v)
Writes an single byte char value.
virtual decaf::lang::Appendable & doAppendCharSequence(const decaf::lang::CharSequence *csq)
virtual void write(const std::string &str, int offset, int length)
Writes a string.
virtual void doWriteArrayBounded(const char *buffer, int size, int offset, int length)=0
Override this method to customize the functionality of the method write( char* buffer,...
virtual void write(const std::string &str)
Writes a string.
virtual decaf::lang::Appendable & append(const decaf::lang::CharSequence *csq)
Appends the specified character sequence to this Appendable.
virtual void doWriteStringBounded(const std::string &str, int offset, int length)
virtual void doWriteChar(char v)
An object to which char sequences and values can be appended.
Definition Appendable.h:42
A CharSequence is a readable sequence of char values.
Definition CharSequence.h:36
#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