public class MemCopyFactory extends Object implements LocalCopyFactory
DocumentSource by
reading them into an in-memory buffer. This allows opening
several input streams over the content at lower cost.| Constructor and Description |
|---|
MemCopyFactory() |
| Modifier and Type | Method and Description |
|---|---|
DocumentSource |
createLocalCopy(DocumentSource in) |
static byte[] |
toByteArray(InputStream in) |
public static byte[] toByteArray(InputStream in) throws IOException
IOExceptionpublic DocumentSource createLocalCopy(DocumentSource in) throws IOException
createLocalCopy in interface LocalCopyFactoryIOExceptionCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.