@Test public void build() { ByteArrayFineIoWriter.build(location, true); ByteArrayFineIoWriter.build(location, false); }
public static ByteArrayWriter build(URI location, boolean isOverwrite) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteWriter contentWriter = ByteFineIoWriter.build(contentLocation, isOverwrite); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongWriter positionWriter = LongFineIoWriter.build(positionLocation, isOverwrite); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntWriter lengthWriter = IntFineIoWriter.build(lengthLocation, isOverwrite); URI lastPosLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LAST_POSITION); LongWriter lastPosWriter = isOverwrite ? null : LongFineIoWriter.build(lastPosLocation, true); LongReader lastPosReader = isOverwrite ? null : LongFineIoReader.build(lastPosLocation); return new BaseByteArrayWriter(contentWriter, positionWriter, lengthWriter, isOverwrite, lastPosWriter, lastPosReader); }
ByteArrayFineIoWriter { public static ByteArrayWriter build(URI location, boolean isOverwrite) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteWriter contentWriter = ByteFineIoWriter.build(contentLocation, isOverwrite); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongWriter positionWriter = LongFineIoWriter.build(positionLocation, isOverwrite); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntWriter lengthWriter = IntFineIoWriter.build(lengthLocation, isOverwrite); URI lastPosLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LAST_POSITION); LongWriter lastPosWriter = isOverwrite ? null : LongFineIoWriter.build(lastPosLocation, true); LongReader lastPosReader = isOverwrite ? null : LongFineIoReader.build(lastPosLocation); return new BaseByteArrayWriter(contentWriter, positionWriter, lengthWriter, isOverwrite, lastPosWriter, lastPosReader); } }
ByteArrayFineIoWriter { public static ByteArrayWriter build(URI location, boolean isOverwrite) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteWriter contentWriter = ByteFineIoWriter.build(contentLocation, isOverwrite); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongWriter positionWriter = LongFineIoWriter.build(positionLocation, isOverwrite); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntWriter lengthWriter = IntFineIoWriter.build(lengthLocation, isOverwrite); URI lastPosLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LAST_POSITION); LongWriter lastPosWriter = isOverwrite ? null : LongFineIoWriter.build(lastPosLocation, true); LongReader lastPosReader = isOverwrite ? null : LongFineIoReader.build(lastPosLocation); return new BaseByteArrayWriter(contentWriter, positionWriter, lengthWriter, isOverwrite, lastPosWriter, lastPosReader); }  }
ByteArrayFineIoWriter { public static ByteArrayWriter build(URI location, boolean isOverwrite) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteWriter contentWriter = ByteFineIoWriter.build(contentLocation, isOverwrite); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongWriter positionWriter = LongFineIoWriter.build(positionLocation, isOverwrite); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntWriter lengthWriter = IntFineIoWriter.build(lengthLocation, isOverwrite); URI lastPosLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LAST_POSITION); LongWriter lastPosWriter = isOverwrite ? null : LongFineIoWriter.build(lastPosLocation, true); LongReader lastPosReader = isOverwrite ? null : LongFineIoReader.build(lastPosLocation); return new BaseByteArrayWriter(contentWriter, positionWriter, lengthWriter, isOverwrite, lastPosWriter, lastPosReader); }  static ByteArrayWriter build(URI location, boolean isOverwrite); }
ByteArrayFineIoWriter { public static ByteArrayWriter build(URI location, boolean isOverwrite) { URI contentLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.CONTENT); ByteWriter contentWriter = ByteFineIoWriter.build(contentLocation, isOverwrite); URI positionLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.POSITION); LongWriter positionWriter = LongFineIoWriter.build(positionLocation, isOverwrite); URI lengthLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LENGTH); IntWriter lengthWriter = IntFineIoWriter.build(lengthLocation, isOverwrite); URI lastPosLocation = URI.create(location.getPath() + "/" + ByteArrayWriter.LAST_POSITION); LongWriter lastPosWriter = isOverwrite ? null : LongFineIoWriter.build(lastPosLocation, true); LongReader lastPosReader = isOverwrite ? null : LongFineIoReader.build(lastPosLocation); return new BaseByteArrayWriter(contentWriter, positionWriter, lengthWriter, isOverwrite, lastPosWriter, lastPosReader); }  static ByteArrayWriter build(URI location, boolean isOverwrite);  }