17#ifndef _DECAF_IO_READER_H
18#define _DECAF_IO_READER_H
43 Reader(
const Reader&);
44 Reader& operator=(
const Reader&);
65 virtual void mark(
int readAheadLimit);
109 virtual long long skip(
long long count);
122 virtual int read(std::vector<char>& buffer);
139 virtual int read(
char* buffer,
int size);
160 virtual int read(
char* buffer,
int size,
int offset,
int length);
Interface for a class that implements the close method.
Definition Closeable.h:30
virtual void mark(int readAheadLimit)
Marks the present position in the stream.
virtual int read(char *buffer, int size, int offset, int length)
Reads characters into a portion of an array.
virtual int read(char *buffer, int size)
Reads characters into an array, the method will attempt to read as much data as the size of the array...
virtual int doReadVector(std::vector< char > &buffer)
Override this method to customize the functionality of the method read( std::vector<char>& buffer ).
virtual int doReadArray(char *buffer, int length)
Override this method to customize the functionality of the method read( char* buffer,...
virtual int doReadCharBuffer(decaf::nio::CharBuffer *charBuffer)
Override this method to customize the functionality of the method read( CharBuffer* charBuffer ).
virtual int doReadChar()
Override this method to customize the functionality of the method read().
virtual int read()
Reads a single character.
virtual void reset()
Resets the stream.
virtual bool ready() const
Tells whether this stream is ready to be read.
virtual int read(std::vector< char > &buffer)
Reads characters into an array.
virtual long long skip(long long count)
Skips characters.
virtual bool markSupported() const
Tells whether this stream supports the mark() operation.
Definition Reader.h:73
virtual int doReadArrayBounded(char *buffer, int size, int offset, int length)=0
Override this method to customize the functionality of the method read( unsigned char* buffer,...
virtual int read(decaf::nio::CharBuffer *charBuffer)
Attempts to read characters into the specified character buffer.
A Readable is a source of characters.
Definition Readable.h:39
This class defines four categories of operations upon character buffers:
Definition CharBuffer.h:68
#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