158159160161162163164165166167168
public byte[] getCachedBytes() throws LargeObjectException { try { throw new LargeObjectException(getObjectId()); } catch (IOException cannotObtainId) { LargeObjectException err = new LargeObjectException(); err.initCause(cannotObtainId); throw err; } } @Override
96979899100101102103104105106
361362363364365366367368369370371
buf = new byte[(int) sz]; } catch (OutOfMemoryError noMemory) { LargeObjectException e; e = new LargeObjectException(id.toObjectId()); e.initCause(noMemory); throw e; } InputStream in = ldr.openStream(); try { IO.readFully(in, buf, 0, buf.length);
920921922923924925926927928929930
buf = new byte[(int) sz]; } catch (OutOfMemoryError noMemory) { LargeObjectException e; e = new LargeObjectException(objId.copy()); e.initCause(noMemory); throw e; } InputStream in = ldr.openStream(); try { IO.readFully(in, buf, 0, buf.length);
426427428429430431432433434435436
if (idx == null) { try { idx = new DeltaIndex(buffer(ent)); } catch (OutOfMemoryError noMemory) { LargeObjectException e = new LargeObjectException(ent.object); e.initCause(noMemory); throw e; } if (0 < maxMemory) loaded += idx.getIndexSize() - idx.getSourceSize(); ent.index = idx;