co.cask.tigon.io
Interface Decoder

All Known Implementing Classes:
BinaryDecoder

public interface Decoder

Interface for decoding data.


Method Summary
 boolean readBool()
           
 ByteBuffer readBytes()
           
 double readDouble()
           
 float readFloat()
           
 int readInt()
           
 long readLong()
           
 Object readNull()
          Returns a null value.
 String readString()
           
 void skipBytes()
          Skips a byte array.
 void skipDouble()
          Skips a double.
 void skipFloat()
          Skips a float.
 void skipString()
          Skips the a string.
 

Method Detail

readNull

Object readNull()
                throws IOException
Returns a null value.

Returns:
Always returns null
Throws:
IOException

readBool

boolean readBool()
                 throws IOException
Throws:
IOException

readInt

int readInt()
            throws IOException
Throws:
IOException

readLong

long readLong()
              throws IOException
Throws:
IOException

readFloat

float readFloat()
                throws IOException
Throws:
IOException

readDouble

double readDouble()
                  throws IOException
Throws:
IOException

readString

String readString()
                  throws IOException
Throws:
IOException

readBytes

ByteBuffer readBytes()
                     throws IOException
Throws:
IOException

skipFloat

void skipFloat()
               throws IOException
Skips a float.

Throws:
IOException

skipDouble

void skipDouble()
                throws IOException
Skips a double.

Throws:
IOException

skipString

void skipString()
                throws IOException
Skips the a string.

Throws:
IOException

skipBytes

void skipBytes()
               throws IOException
Skips a byte array.

Throws:
IOException


Copyright © 2014 Cask Data, Inc. Licensed under the Apache License, Version 2.0.