com.jmatio.types
Class MLInt8

java.lang.Object
  extended by com.jmatio.types.MLArray
      extended by com.jmatio.types.MLNumericArray<Byte>
          extended by com.jmatio.types.MLInt8
All Implemented Interfaces:
ByteStorageSupport<Byte>, GenericArrayCreator<Byte>

public class MLInt8
extends MLNumericArray<Byte>


Field Summary
 
Fields inherited from class com.jmatio.types.MLArray
attributes, dims, mtFLAG_COMPLEX, mtFLAG_GLOBAL, mtFLAG_LOGICAL, mtFLAG_TYPE, mxCELL_CLASS, mxCHAR_CLASS, mxDOUBLE_CLASS, mxFUNCTION_CLASS, mxINT16_CLASS, mxINT32_CLASS, mxINT64_CLASS, mxINT8_CLASS, mxOBJECT_CLASS, mxOPAQUE_CLASS, mxSINGLE_CLASS, mxSPARSE_CLASS, mxSTRUCT_CLASS, mxUINT16_CLASS, mxUINT32_CLASS, mxUINT64_CLASS, mxUINT8_CLASS, mxUNKNOWN_CLASS, name, type
 
Constructor Summary
MLInt8(String name, byte[][] vals)
          Jama [math.nist.gov] style: construct a 2D real matrix from byte[][] Note: array is converted to Byte[]
MLInt8(String name, byte[] vals, int m)
          Jama [math.nist.gov] style: construct a matrix from a one-dimensional packed array
MLInt8(String name, Byte[] vals, int m)
          Jama [math.nist.gov] style: construct a 2D real matrix from a one-dimensional packed array
MLInt8(String name, int[] dims)
          Create a MLUInt8 array with given name, and dimensions.
MLInt8(String name, int[] dims, int type, int attributes)
          Normally this constructor is used only by MatFileReader and MatFileWriter
 
Method Summary
protected  Byte _get(ByteBuffer buffer, int index)
          Override to accelerate the performance
 Byte buldFromBytes(byte[] bytes)
           
 Byte[] createArray(int m, int n)
           
 byte[][] getArray()
          Gets two-dimensional real array.
 byte[] getByteArray(Byte value)
           
 int getBytesAllocated()
           
 Class<Byte> getStorageClazz()
           
 
Methods inherited from class com.jmatio.types.MLNumericArray
_set, allocate, contentToString, dispose, equals, get, get, getImaginary, getImaginary, getImaginaryByteBuffer, getReal, getReal, getRealByteBuffer, putImaginaryByteBuffer, putRealByteBuffer, set, set, set, setImaginary, setImaginary, setReal, setReal, setReal
 
Methods inherited from class com.jmatio.types.MLArray
getDimensions, getFlags, getIndex, getM, getN, getName, getNameToByteArray, getNDimensions, getSize, getType, isCell, isChar, isComplex, isDouble, isEmpty, isFunctionObject, isInt16, isInt32, isInt64, isInt8, isLogical, isObject, isOpaque, isSingle, isSparse, isStruct, isUint16, isUint32, isUint64, isUint8, isUnknown, toString, typeToString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MLInt8

public MLInt8(String name,
              int[] dims,
              int type,
              int attributes)
Normally this constructor is used only by MatFileReader and MatFileWriter

Parameters:
name - - array name
dims - - array dimensions
type - - array type: here mxDOUBLE_CLASS
attributes - - array flags

MLInt8

public MLInt8(String name,
              int[] dims)
Create a MLUInt8 array with given name, and dimensions.

Parameters:
name - - array name
dims - - array dimensions

MLInt8

public MLInt8(String name,
              Byte[] vals,
              int m)
Jama [math.nist.gov] style: construct a 2D real matrix from a one-dimensional packed array

Parameters:
name - - array name
vals - - One-dimensional array of doubles, packed by columns (ala Fortran).
m - - Number of rows

MLInt8

public MLInt8(String name,
              byte[][] vals)
Jama [math.nist.gov] style: construct a 2D real matrix from byte[][] Note: array is converted to Byte[]

Parameters:
name - - array name
vals - - two-dimensional array of values

MLInt8

public MLInt8(String name,
              byte[] vals,
              int m)
Jama [math.nist.gov] style: construct a matrix from a one-dimensional packed array

Parameters:
name - - array name
vals - - One-dimensional array of doubles, packed by columns (ala Fortran).
m - - Number of rows
Method Detail

createArray

public Byte[] createArray(int m,
                          int n)

getArray

public byte[][] getArray()
Gets two-dimensional real array.

Returns:
- 2D real array

buldFromBytes

public Byte buldFromBytes(byte[] bytes)

getByteArray

public byte[] getByteArray(Byte value)

getBytesAllocated

public int getBytesAllocated()

getStorageClazz

public Class<Byte> getStorageClazz()

_get

protected Byte _get(ByteBuffer buffer,
                    int index)
Override to accelerate the performance

Overrides:
_get in class MLNumericArray<Byte>
See Also:
com.jmatio.io.io.types.MLNumericArray#_get(java.nio.ByteBuffer, int)


Copyright © 2006–2014 GeoSolutions. All rights reserved.