@Test(expected=MalformedURLException.class) public void testGetStreamFromInvalidUrl() throws Exception { stage.getStreamFromUrl("myInvalidUrl"); }
InputStream getStreamFromUrl(String stringUrl) throws IOException { URL url = new URL(stringUrl); InputStream in = url.openStream(); return in; }
TextExtractionStage extends AbstractProcessStage { InputStream getStreamFromUrl(String stringUrl) throws IOException { URL url = new URL(stringUrl); InputStream in = url.openStream(); return in; } }
TextExtractionStage extends AbstractProcessStage { InputStream getStreamFromUrl(String stringUrl) throws IOException { URL url = new URL(stringUrl); InputStream in = url.openStream(); return in; }  }
TextExtractionStage extends AbstractProcessStage { InputStream getStreamFromUrl(String stringUrl) throws IOException { URL url = new URL(stringUrl); InputStream in = url.openStream(); return in; }  @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 { InputStream getStreamFromUrl(String stringUrl) throws IOException { URL url = new URL(stringUrl); InputStream in = url.openStream(); return in; }  @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);  }