@Test public void testCustomConfiguration() throws ConfigurationException { System.setProperty("sejda.config.file", "custom-sejda.xml"); ConfigurationStreamProvider provider = new XmlConfigurationStreamProvider(); assertNotNull(provider.getConfigurationStream()); }
@Override public InputStream getConfigurationStream() throws ConfigurationException { return ofNullable(getConfiguration()) .orElseThrow(() -> new ConfigurationException("Unable to find xml configuration file")); }
XmlConfigurationStreamProvider implements ConfigurationStreamProvider { @Override public InputStream getConfigurationStream() throws ConfigurationException { return ofNullable(getConfiguration()) .orElseThrow(() -> new ConfigurationException("Unable to find xml configuration file")); } }
XmlConfigurationStreamProvider implements ConfigurationStreamProvider { @Override public InputStream getConfigurationStream() throws ConfigurationException { return ofNullable(getConfiguration()) .orElseThrow(() -> new ConfigurationException("Unable to find xml configuration file")); }  }
XmlConfigurationStreamProvider implements ConfigurationStreamProvider { @Override public InputStream getConfigurationStream() throws ConfigurationException { return ofNullable(getConfiguration()) .orElseThrow(() -> new ConfigurationException("Unable to find xml configuration file")); }  @Override InputStream getConfigurationStream(); }
XmlConfigurationStreamProvider implements ConfigurationStreamProvider { @Override public InputStream getConfigurationStream() throws ConfigurationException { return ofNullable(getConfiguration()) .orElseThrow(() -> new ConfigurationException("Unable to find xml configuration file")); }  @Override InputStream getConfigurationStream();  }