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 Object
- implements Blob
- Author:
- Bogdan Stefanescu
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 String EMPTY_STRING
- See Also:
- Constant Field Values
EMPTY_BYTE_ARRAY
public static final byte[] EMPTY_BYTE_ARRAY
EMPTY_INPUT_STREAM
public static final InputStream EMPTY_INPUT_STREAM
EMPTY_READER
public static final Reader EMPTY_READER
AbstractBlob
public AbstractBlob()
copy
public static void copy(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
copy
public static void copy(Reader in,
Writer out)
throws IOException
- Throws:
IOException
transferTo
public void transferTo(Writer writer)
throws IOException
- Specified by:
transferTo
in interface Blob
- Throws:
IOException
transferTo
public void transferTo(OutputStream out)
throws IOException
- Specified by:
transferTo
in interface Blob
- Throws:
IOException
transferTo
public void transferTo(File file)
throws IOException
- Specified by:
transferTo
in interface Blob
- Throws:
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.