@Test public void testExtract() throws Exception { FileDataInputParameter p = new FileDataInputParameter(); File f = TempFileUtils.createTrackedFile(testName.getMethodName(), "", p); p.setDestination(new ConfiguredDestination("file: FileUtils.write(f, TEXT, false); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); assertNotSame(TEXT, msg.getContent()); assertEquals(TEXT, p.extract(msg)); }
@Override public String extract(InterlokMessage message) throws CoreException { try { return load(new URLString(url(message)), message.getContentEncoding()); } catch (IOException ex) { throw ExceptionHelper.wrapCoreException(ex); } }
FileDataInputParameter extends FileParameter implements DataInputParameter<String> { @Override public String extract(InterlokMessage message) throws CoreException { try { return load(new URLString(url(message)), message.getContentEncoding()); } catch (IOException ex) { throw ExceptionHelper.wrapCoreException(ex); } } }
FileDataInputParameter extends FileParameter implements DataInputParameter<String> { @Override public String extract(InterlokMessage message) throws CoreException { try { return load(new URLString(url(message)), message.getContentEncoding()); } catch (IOException ex) { throw ExceptionHelper.wrapCoreException(ex); } } FileDataInputParameter(); }
FileDataInputParameter extends FileParameter implements DataInputParameter<String> { @Override public String extract(InterlokMessage message) throws CoreException { try { return load(new URLString(url(message)), message.getContentEncoding()); } catch (IOException ex) { throw ExceptionHelper.wrapCoreException(ex); } } FileDataInputParameter(); @Override String extract(InterlokMessage message); }
FileDataInputParameter extends FileParameter implements DataInputParameter<String> { @Override public String extract(InterlokMessage message) throws CoreException { try { return load(new URLString(url(message)), message.getContentEncoding()); } catch (IOException ex) { throw ExceptionHelper.wrapCoreException(ex); } } FileDataInputParameter(); @Override String extract(InterlokMessage message);  }