public static int decodeString(byte[] src, int srcOffset, String[] valueRef)
        throws CorruptEncodingException
    {
        try {
            return decodeString(src, srcOffset, valueRef, 0);
        } catch (IndexOutOfBoundsException e) {
            throw new CorruptEncodingException(null, e);
        }
    }
public static int decodeString ( byte [ ] src , int srcOffset , String [ ] valueRef ) throws CorruptEncodingException { try { return decodeString ( src , srcOffset , valueRef , 0 ) ; } catch ( IndexOutOfBoundsException e ) { throw new CorruptEncodingException ( null , e ) ; } }
Decodes an encoded string from the given byte array.

@param src source of encoded data
@param srcOffset offset into encoded data
@param valueRef decoded string is stored in element 0, which may be null
@return amount of bytes read from source
@throws CorruptEncodingException if source data is corrupt