|Modifier and Type||Class and Description|
|Constructor and Description|
|Modifier and Type||Method and Description|
This tries to create a file based on the
@Deprecated public FSOutputStreamFactory(File outputRoot, FSUtil.HANDLE_EXISTING handleExisting, FSOutputStreamFactory.COMPRESSION compression, String suffix)
FSOutputStreamFactory(Path, FSUtil.HANDLE_EXISTING, COMPRESSION, String)
public OutputStream getOutputStream(Metadata metadata) throws IOException
FSUtil.HANDLE_EXISTINGvalue that was passed in during initialization.
handleExisting is set to "SKIP" and the output file already exists,
this will return null.
If an output file can be found, this will try to mkdirs for that output file. If mkdirs() fails, this will throw an IOException.
Finally, this will open an output stream for the appropriate output file.
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.