MADARA  3.2.3
madara::filters::JavaBufferFilter Class Reference

Filters a buffer in Java. More...

#include <JavaBufferFilter.h>

Inheritance diagram for madara::filters::JavaBufferFilter:
madara::filters::BufferFilter

Public Member Functions

 JavaBufferFilter (logger::Logger &logger, jobject obj)
 Constructor. More...
 
virtual ~JavaBufferFilter ()
 Destructor. More...
 
virtual int decode (unsigned char *source, int size, int max_size) const
 Decodes the buffer in place using AES encryption. More...
 
virtual int encode (unsigned char *source, int size, int max_size) const
 Encodes the buffer in place using AES encryption. More...
 

Private Attributes

jclass class_
 the class of the Java object obj_ More...
 
logger::Loggerlogger_
 a logger More...
 
jobject obj_
 

Detailed Description

Filters a buffer in Java.

Definition at line 32 of file JavaBufferFilter.h.

Constructor & Destructor Documentation

madara::filters::JavaBufferFilter::JavaBufferFilter ( logger::Logger logger,
jobject  obj 
)

Constructor.

Definition at line 12 of file JavaBufferFilter.cpp.

madara::filters::JavaBufferFilter::~JavaBufferFilter ( )
virtual

Destructor.

Definition at line 62 of file JavaBufferFilter.cpp.

Member Function Documentation

int madara::filters::JavaBufferFilter::decode ( unsigned char *  source,
int  size,
int  max_size 
) const
virtual

Decodes the buffer in place using AES encryption.

Parameters
sourcethe source and destination buffer
sizethe amount of data in the buffer in bytes
max_sizethe amount of bytes the buffer can hold
Returns
the new size after decoding

Implements madara::filters::BufferFilter.

Definition at line 134 of file JavaBufferFilter.cpp.

int madara::filters::JavaBufferFilter::encode ( unsigned char *  source,
int  size,
int  max_size 
) const
virtual

Encodes the buffer in place using AES encryption.

Parameters
sourcethe source and destination buffer
sizethe amount of data in the buffer in bytes
max_sizethe amount of bytes the buffer can hold
Returns
the new size after encoding

Implements madara::filters::BufferFilter.

Definition at line 77 of file JavaBufferFilter.cpp.

Member Data Documentation

jclass madara::filters::JavaBufferFilter::class_
private

the class of the Java object obj_

Definition at line 69 of file JavaBufferFilter.h.

logger::Logger* madara::filters::JavaBufferFilter::logger_
private

a logger

Definition at line 72 of file JavaBufferFilter.h.

jobject madara::filters::JavaBufferFilter::obj_
private

Definition at line 66 of file JavaBufferFilter.h.


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