Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.impl.blob
Class AbstractBlob

java.lang.Object
  extended by 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

Field Summary
static byte[] EMPTY_BYTE_ARRAY
           
static InputStream EMPTY_INPUT_STREAM
           
static Reader EMPTY_READER
           
static String EMPTY_STRING
           
 
Constructor Summary
AbstractBlob()
           
 
Method Summary
static void copy(InputStream in, OutputStream out)
           
static void copy(Reader in, Writer out)
           
 void transferTo(File file)
           
 void transferTo(OutputStream out)
           
 void transferTo(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
 

Field Detail

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
Constructor Detail

AbstractBlob

public AbstractBlob()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.