@Test public void release() { ByteArrayFineIoReader.build(location).release(); verify(byteReader).release(); verify(intReader).release(); verify(longReader).release(); }
public static ByteArrayReader build(URI location) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteReader contentReader = ByteFineIoReader.build(contentLocation); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongReader positionReader = LongFineIoReader.build(positionLocation); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntReader lengthReader = IntFineIoReader.build(lengthLocation); return new BaseByteArrayReader(contentReader, positionReader, lengthReader); }
ByteArrayFineIoReader { public static ByteArrayReader build(URI location) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteReader contentReader = ByteFineIoReader.build(contentLocation); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongReader positionReader = LongFineIoReader.build(positionLocation); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntReader lengthReader = IntFineIoReader.build(lengthLocation); return new BaseByteArrayReader(contentReader, positionReader, lengthReader); } }
ByteArrayFineIoReader { public static ByteArrayReader build(URI location) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteReader contentReader = ByteFineIoReader.build(contentLocation); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongReader positionReader = LongFineIoReader.build(positionLocation); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntReader lengthReader = IntFineIoReader.build(lengthLocation); return new BaseByteArrayReader(contentReader, positionReader, lengthReader); }  }
ByteArrayFineIoReader { public static ByteArrayReader build(URI location) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteReader contentReader = ByteFineIoReader.build(contentLocation); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongReader positionReader = LongFineIoReader.build(positionLocation); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntReader lengthReader = IntFineIoReader.build(lengthLocation); return new BaseByteArrayReader(contentReader, positionReader, lengthReader); }  static ByteArrayReader build(URI location); }
ByteArrayFineIoReader { public static ByteArrayReader build(URI location) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteReader contentReader = ByteFineIoReader.build(contentLocation); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongReader positionReader = LongFineIoReader.build(positionLocation); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntReader lengthReader = IntFineIoReader.build(lengthLocation); return new BaseByteArrayReader(contentReader, positionReader, lengthReader); }  static ByteArrayReader build(URI location);  }