/** * {@inheritDoc} * * @see de.fdamken.iofacade.File#openOutputStream() */ @Override public OutputStream openOutputStream() throws IOException, FileNotFoundException { Assertion.acquire(this).exists(); return Files.newOutputStream(this.getPath()); }
/** * {@inheritDoc} * * @see de.fdamken.iofacade.property.Makeable#create() */ @Override public void create() throws IOException, FileAlreadyExistsException { Assertion.acquire(this).notExists(); Files.createFile(this.getPath()); }