Package rocket.util.server

Examples of rocket.util.server.UncheckedIOException


  public void load() {
    try {
      this.load0();
    } catch (final IOException ioException) {
      throw new UncheckedIOException(ioException);
    }
  }
View Full Code Here


        writer.print(replacer.execute(line));
        addNewLine = true;
      }

    } catch (final IOException caught) {
      throw new UncheckedIOException(caught);
    } finally {
      InputOutput.closeIfNecessary(reader);
    }
  }
View Full Code Here

  public void load(final String fileName) {
    Checker.notEmpty("parameter:fileName", fileName);

    final InputStream file = this.getClass().getResourceAsStream(fileName);
    if (null == file) {
      throw new UncheckedIOException("Unable to find properties file \"" + fileName + "\".");
    }
    this.merge(file);
  }
View Full Code Here

    Checker.notNull("parameter:inputStream", inputStream);

    try {
      this.getValues().load(inputStream);
    } catch (final IOException io) {
      throw new UncheckedIOException(io);
    } finally {
      InputOutput.closeIfNecessary(inputStream);
    }
  }
View Full Code Here

TOP

Related Classes of rocket.util.server.UncheckedIOException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.