All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emc.mongoose.common.io.TextFileOutput Maven / Gradle / Ivy

The newest version!
package com.emc.mongoose.common.io;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;

/**
 Created by kurila on 15.11.16.
 */
public class TextFileOutput
extends LinesBufferedStreamOutput {
	
	private final Path filePath;
	
	public TextFileOutput(final Path filePath)
	throws IOException {
		super(Files.newOutputStream(filePath, StandardOpenOption.CREATE, StandardOpenOption.WRITE));
		this.filePath = filePath;
	}
	
	@Override
	public Input getInput()
	throws IOException {
		return new TextFileInput(filePath);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy