public final class ByteArray_Type extends CommonArray_Type
| Modifier and Type | Field and Description | 
|---|---|
| static int | typeIndexIDthis types ID - used to index a localTypeArray in JCas to get an index which indexes the global
 typeArray in JCas instance to get a ref to this instance | 
casImpl, casType, casTypeCode, instanceOf_Type, jcas, ll_cas, lowLevelArrayBoundChecks, lowLevelTypeChecks, useExistingInstance| Constructor and Description | 
|---|
| ByteArray_Type(JCas jcas,
              Type casType) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | copyFromArray(int addr,
             byte[] src,
             int srcOffset,
             int destOffset,
             int length) | 
| void | copyToArray(int addr,
           int srcOffset,
           byte[] dest,
           int destOffset,
           int length) | 
| byte | get(int addr,
   int i) | 
| protected org.apache.uima.cas.impl.FSGenerator<?> | getFSGenerator() | 
| void | set(int addr,
   int i,
   byte v)updates the Cas, setting the indexed value to the passed in Java value | 
| byte[] | toArray(int addr) | 
sizeaddToIndexes, checkType, getTypeIndexID, invalidTypeArg, noObjCreate, removeFromIndexespublic static final int typeIndexID
protected org.apache.uima.cas.impl.FSGenerator<?> getFSGenerator()
getFSGenerator in class TOP_Typepublic byte get(int addr,
                int i)
addr - low level CAS Feature Structure reference to get value fromi - the indexByteArrayFS.get(int)public void set(int addr,
                int i,
                byte v)
addr - low level CAS Feature Structure reference to set value intoi - the indexv - the valueByteArrayFS.set(int, byte)public void copyFromArray(int addr,
                          byte[] src,
                          int srcOffset,
                          int destOffset,
                          int length)
addr - low level reference to the FS in the CASsrc - where to copy data fromsrcOffset - the source offsetdestOffset - the destination offsetlength - the number of bytes to copyByteArrayFS.copyFromArray(byte[], int, int, int)public void copyToArray(int addr,
                        int srcOffset,
                        byte[] dest,
                        int destOffset,
                        int length)
addr - low level reference to the FS in the CASsrcOffset - the source offsetdest - the array to copy intodestOffset - the destination offsetlength - the number of bytes to copyByteArrayFS.copyToArray(int, byte[], int, int)public byte[] toArray(int addr)
addr - low level reference to the FS in the CASByteArrayFS.toArray()Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.