@Test public void testInsert() throws Exception { ByteArrayPayloadDataOutputParameter parameter = new ByteArrayPayloadDataOutputParameter(); AdaptrisMessage message = DefaultMessageFactory.getDefaultInstance().newMessage(); parameter.insert(PAYLOAD, message); assertArrayEquals(PAYLOAD, message.getPayload()); }
@Override public void insert(byte[] data, InterlokMessage msg) throws InterlokException { try (OutputStream os = msg.getOutputStream()) { os.write(data); } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } }
ByteArrayPayloadDataOutputParameter implements DataOutputParameter<byte[]> { @Override public void insert(byte[] data, InterlokMessage msg) throws InterlokException { try (OutputStream os = msg.getOutputStream()) { os.write(data); } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } } }
ByteArrayPayloadDataOutputParameter implements DataOutputParameter<byte[]> { @Override public void insert(byte[] data, InterlokMessage msg) throws InterlokException { try (OutputStream os = msg.getOutputStream()) { os.write(data); } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } }  }
ByteArrayPayloadDataOutputParameter implements DataOutputParameter<byte[]> { @Override public void insert(byte[] data, InterlokMessage msg) throws InterlokException { try (OutputStream os = msg.getOutputStream()) { os.write(data); } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } }  @Override void insert(byte[] data, InterlokMessage msg); }
ByteArrayPayloadDataOutputParameter implements DataOutputParameter<byte[]> { @Override public void insert(byte[] data, InterlokMessage msg) throws InterlokException { try (OutputStream os = msg.getOutputStream()) { os.write(data); } catch (Exception e) { throw ExceptionHelper.wrapCoreException(e); } }  @Override void insert(byte[] data, InterlokMessage msg);  }