kz.gamma.hardware.util.encoders
Interface Encoder

All Known Implementing Classes:
Base64Encoder, HexEncoder, UrlBase64Encoder

public interface Encoder

Encode and decode byte arrays (typically from binary to 7-bit ASCII encodings).


Method Summary
 int decode(byte[] data, int off, int length, java.io.OutputStream out)
          Decode the byte data
 int decode(java.lang.String data, java.io.OutputStream out)
          Decode the byte data
 int encode(byte[] data, int off, int length, java.io.OutputStream out)
          Encode the byte data
 

Method Detail

encode

int encode(byte[] data,
           int off,
           int length,
           java.io.OutputStream out)
           throws java.io.IOException
Encode the byte data

Parameters:
data - Данные для кодирования
off - Начальный сдвиг
length - Длина
out - Поток для записи
Returns:
the number of bytes produced
Throws:
java.io.IOException

decode

int decode(byte[] data,
           int off,
           int length,
           java.io.OutputStream out)
           throws java.io.IOException
Decode the byte data

Parameters:
data - Данные для декодирования
off - Начальный сдвиг
length - Длина
out - Поток для записи
Returns:
the number of bytes produced
Throws:
java.io.IOException

decode

int decode(java.lang.String data,
           java.io.OutputStream out)
           throws java.io.IOException
Decode the byte data

Parameters:
data - Данные для декодирования
out - Поток для записи
Returns:
the number of bytes produced
Throws:
java.io.IOException


Copyright © 2013 Gamma Technologies. All Rights Reserved.