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 protected
VaultFileOutputImpl(TransactionImpl.Change tx)
protected
VaultFileOutputImpl(TransactionImpl.Change tx, VaultInputSource input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
OutputStream
getOutputStream()
This method can only be called once.void
setContentType(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:
getOutputStream
in 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:
setContentType
in interfaceVaultFileOutput
-
close
public void close() throws IOException, RepositoryException
- Specified by:
close
in interfaceVaultFileOutput
- Throws:
IOException
RepositoryException
-
-