org.nuxeo.ecm.core.api.impl.blob
Class AbstractBlob
java.lang.Object
org.nuxeo.ecm.core.api.impl.blob.AbstractBlob
- All Implemented Interfaces:
- Blob
- Direct Known Subclasses:
- DefaultBlob, StreamBlob
public abstract class AbstractBlob
- extends java.lang.Object
- implements Blob
- Author:
- Bogdan Stefanescu
Method Summary |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out)
|
static void |
copy(java.io.Reader in,
java.io.Writer out)
|
void |
transferTo(java.io.File file)
|
void |
transferTo(java.io.OutputStream out)
|
void |
transferTo(java.io.Writer writer)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.nuxeo.ecm.core.api.Blob |
getByteArray, getDigest, getEncoding, getFilename, getLength, getMimeType, getReader, getStream, getString, isPersistent, persist, setDigest, setEncoding, setFilename, setMimeType |
EMPTY_STRING
public static final java.lang.String EMPTY_STRING
- See Also:
- Constant Field Values
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAY
EMPTY_INPUT_STREAM
public static final java.io.InputStream EMPTY_INPUT_STREAM
EMPTY_READER
public static final java.io.Reader EMPTY_READER
AbstractBlob
public AbstractBlob()
copy
public static void copy(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
copy
public static void copy(java.io.Reader in,
java.io.Writer out)
throws java.io.IOException
- Throws:
java.io.IOException
transferTo
public void transferTo(java.io.Writer writer)
throws java.io.IOException
- Specified by:
transferTo
in interface Blob
- Throws:
java.io.IOException
transferTo
public void transferTo(java.io.OutputStream out)
throws java.io.IOException
- Specified by:
transferTo
in interface Blob
- Throws:
java.io.IOException
transferTo
public void transferTo(java.io.File file)
throws java.io.IOException
- Specified by:
transferTo
in interface Blob
- Throws:
java.io.IOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.