Ejemplo n.º 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());
  }
Ejemplo n.º 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());
  }