boolean pre1254 = !(cmode == CompatibilityMode.COMPAT_CURRENT || cmode.ordinal() >= CompatibilityMode.COMPAT_1255.ordinal());
try {
return innerEncode(random, uri, sourceData, isMetadata, compressionCodec, sourceLength, ctx.compressorDescriptor, pre1254, cryptoAlgorithm, cryptoKey);
} catch (KeyEncodeException e) {
Logger.error(SingleBlockInserter.class, "Caught "+e, e);
throw new InsertException(InsertExceptionMode.INTERNAL_ERROR, e, null);
} catch (MalformedURLException e) {
throw new InsertException(InsertExceptionMode.INVALID_URI, e, null);
} catch (IOException e) {
Logger.error(SingleBlockInserter.class, "Caught "+e+" encoding data "+sourceData, e);
throw new InsertException(InsertExceptionMode.BUCKET_ERROR, e, null);
} catch (InvalidCompressionCodecException e) {
throw new InsertException(InsertExceptionMode.INTERNAL_ERROR, e, null);
}
}