Class VaultFileOutputImpl
java.lang.Object
org.apache.jackrabbit.vault.fs.impl.VaultFileOutputImpl
- All Implemented Interfaces:
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 a
TransactionImpl.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This method can only be called once.voidsetContentType(String contentType)
-
Constructor Details
-
VaultFileOutputImpl
-
VaultFileOutputImpl
-
-
Method Details
-
getOutputStream
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
- Specified by:
setContentTypein interfaceVaultFileOutput
-
close
- Specified by:
closein interfaceVaultFileOutput- Throws:
IOExceptionRepositoryException
-