Arduino TinyFTP
Public Member Functions | Protected Attributes | List of all members
ftp_client::FTPFile Class Reference

FTPFile A single file which supports read and write operations. This class is implemented as an Arduino Stream and therfore provides all corresponding functionality. More...

#include <ArduinoFTPClient.h>

Inheritance diagram for ftp_client::FTPFile:

Public Member Functions

 FTPFile (FTPBasicAPI *api_ptr, const char *name, FileMode mode)
 FTPFile A single file which supports read and write operations. This class is implemented as an Arduino Stream.
 
 FTPFile (FTPFile &cpy)
 
 FTPFile (FTPFile &&move)
 
FTPFileoperator= (const FTPFile &)
 
virtual size_t write (uint8_t data)
 
virtual size_t write (char *data, int len)
 
virtual int read ()
 
virtual int read (void *buf, size_t nbyte)
 
virtual int readln (void *buf, size_t nbyte)
 
virtual int peek ()
 
virtual int available ()
 
virtual void flush ()
 
virtual void close ()
 
virtual const char * name ()
 
virtual size_t size ()
 
virtual void setEOL (char *eol)
 
virtual bool isDirectory ()
 

Protected Attributes

const char * file_name
 
const char * eol = "\n"
 
FileMode mode
 
FTPBasicAPIapi_ptr
 
ObjectType object_type = TypeUndefined
 

Detailed Description

FTPFile A single file which supports read and write operations. This class is implemented as an Arduino Stream and therfore provides all corresponding functionality.


The documentation for this class was generated from the following files: