public byte[] toByteArray() throws IOException {if (onDiskFile == null) {return super.toByteArray();}final long len = length();if (Integer.MAX_VALUE < len)throw new OutOfMemoryError(JGitText.get().lengthExceedsMaximumArraySize);final byte[] out = new byte[(int) len];try (FileInputStream in = new FileInputStream(onDiskFile)) {IO.readFully(in, out, 0, (int) len);}return out;}
public override byte[] ToByteArray(){if (onDiskFile == null){return base.ToByteArray();}long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];FileInputStream @in = new FileInputStream(onDiskFile);try{IOUtil.ReadFully(@in, @out, 0, (int)len);}finally{@in.Close();}return @out;}