static private IV decodeInlineURI(final byte flags,final byte[] key,int o){
  if (AbstractIV.isExtension(flags)) {
    final IV namespaceIV=decodeFromOffset(key,o);
    o+=namespaceIV.byteLength();
    final AbstractLiteralIV<BigdataLiteral,?> localNameIV=(AbstractLiteralIV<BigdataLiteral,?>)decodeFromOffset(key,o);
    final IV iv=new URIExtensionIV<BigdataURI>(localNameIV,namespaceIV);
    return iv;
  }
  final DTE dte=AbstractIV.getDTE(flags);
switch (dte) {
case XSDByte:
{
      final byte x=key[o];
      return new VocabURIByteIV<BigdataURI>(x);
    }
case XSDShort:
{
    final short x=KeyBuilder.decodeShort(key,o);
    return new VocabURIShortIV<BigdataURI>(x);
  }
case XSDString:
{
  final StringBuilder sb=new StringBuilder();
  final String str1;
  final int nbytes;
  try {
    nbytes=IVUnicode.decode(new ByteArrayInputStream(key,o,key.length - o),sb);
    str1=sb.toString();
  }
 catch (  IOException e) {
    throw new RuntimeException(e);
  }
  return new FullyInlineURIIV<BigdataURI>(new URIImpl(str1),1 + nbytes);
}
default :
throw new UnsupportedOperationException("dte=" + dte);
}
}

static private IV decodeInlineURI ( final byte flags , final byte [ ] key , int o ) { if ( AbstractIV . isExtension ( flags ) ) { final IV namespaceIV = decodeFromOffset ( key , o ) ; o += namespaceIV . byteLength ( ) ; final AbstractLiteralIV < BigdataLiteral , ? > localNameIV = ( AbstractLiteralIV < BigdataLiteral , ? > ) decodeFromOffset ( key , o ) ; final IV iv = new URIExtensionIV < BigdataURI > ( localNameIV , namespaceIV ) ; return iv ; } final DTE dte = AbstractIV . getDTE ( flags ) ; switch ( dte ) { case XSDByte : { final byte x = key [ o ] ; return new VocabURIByteIV < BigdataURI > ( x ) ; } case XSDShort : { final short x = KeyBuilder . decodeShort ( key , o ) ; return new VocabURIShortIV < BigdataURI > ( x ) ; } case XSDString : { final StringBuilder sb = new StringBuilder ( ) ; final String str1 ; final int nbytes ; try { nbytes = IVUnicode . decode ( new ByteArrayInputStream ( key , o , key . length - o ) , sb ) ; str1 = sb . toString ( ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } return new FullyInlineURIIV < BigdataURI > ( new URIImpl ( str1 ) , 1 + nbytes ) ; } default : throw new UnsupportedOperationException ( "dte=" + dte ) ; } }
decode an inline uri from a byte offset .
