com.emc.mongoose.common.io.TextFileOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-common Show documentation
Show all versions of mongoose-common Show documentation
Mongoose is a high-load storage performance testing tool
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