예제 #1
0
  /**
   * {@inheritDoc}
   *
   * @see de.fdamken.iofacade.File#openOutputStream()
   */
  @Override
  public OutputStream openOutputStream() throws IOException, FileNotFoundException {
    Assertion.acquire(this).exists();

    return Files.newOutputStream(this.getPath());
  }
예제 #2
0
  /**
   * {@inheritDoc}
   *
   * @see de.fdamken.iofacade.property.Makeable#create()
   */
  @Override
  public void create() throws IOException, FileAlreadyExistsException {
    Assertion.acquire(this).notExists();

    Files.createFile(this.getPath());
  }