Class VaultFileOutputImpl
- java.lang.Object
-
- org.apache.jackrabbit.vault.fs.impl.VaultFileOutputImpl
-
- All Implemented Interfaces:
VaultFileOutput
public class VaultFileOutputImpl extends Object implements VaultFileOutput
Provides methods for writing jcr files. This can either be done by providing an input source or by fetching an output stream. This output stream can be acquired via aTransactionImpl.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVaultFileOutputImpl(TransactionImpl.Change tx)protectedVaultFileOutputImpl(TransactionImpl.Change tx, VaultInputSource input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()OutputStreamgetOutputStream()This method can only be called once.voidsetContentType(String contentType)
-
-
-
Constructor Detail
-
VaultFileOutputImpl
protected VaultFileOutputImpl(TransactionImpl.Change tx)
-
VaultFileOutputImpl
protected VaultFileOutputImpl(TransactionImpl.Change tx, VaultInputSource input)
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream() throws IOException
This method can only be called once.- Specified by:
getOutputStreamin interfaceVaultFileOutput- Returns:
- the returned output stream is implicitly closed via
close()and doesn't need to be closed. - Throws:
IOException
-
setContentType
public void setContentType(String contentType)
- Specified by:
setContentTypein interfaceVaultFileOutput
-
close
public void close() throws IOException, RepositoryException- Specified by:
closein interfaceVaultFileOutput- Throws:
IOExceptionRepositoryException
-
-