@Test public void testMaxFileSizeNotSet() { if (!stage.okFileSize(-1)) { fail("No max size was set, but file was not approved"); } }
boolean okFileSize(long size) { if (maxSizeInBytes < 0) return true; return (size <= maxSizeInBytes); }
TextExtractionStage extends AbstractProcessStage { boolean okFileSize(long size) { if (maxSizeInBytes < 0) return true; return (size <= maxSizeInBytes); } }
TextExtractionStage extends AbstractProcessStage { boolean okFileSize(long size) { if (maxSizeInBytes < 0) return true; return (size <= maxSizeInBytes); }  }
TextExtractionStage extends AbstractProcessStage { boolean okFileSize(long size) { if (maxSizeInBytes < 0) return true; return (size <= maxSizeInBytes); }  @Override void process(LocalDocument doc); @Override void init(); void setUrlField(String urlField); void setContentField(String contentField); String getContentField(); void setMetadatPrefix(String prefix); String getMetadataPrefix(); long getMaxSizeInBytes(); void setMaxSizeInBytes(long size); String getFileSizeField(); void setFileSizeField(String fileSizeField); String getFileFormatField(); void setFileFormatField(String fileFormatField); List<String> getAllowedFileFormats(); void setAllowedFileFormats(List<String> allowedFileFormats); }
TextExtractionStage extends AbstractProcessStage { boolean okFileSize(long size) { if (maxSizeInBytes < 0) return true; return (size <= maxSizeInBytes); }  @Override void process(LocalDocument doc); @Override void init(); void setUrlField(String urlField); void setContentField(String contentField); String getContentField(); void setMetadatPrefix(String prefix); String getMetadataPrefix(); long getMaxSizeInBytes(); void setMaxSizeInBytes(long size); String getFileSizeField(); void setFileSizeField(String fileSizeField); String getFileFormatField(); void setFileFormatField(String fileFormatField); List<String> getAllowedFileFormats(); void setAllowedFileFormats(List<String> allowedFileFormats);  }