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
IOException
public DocumentSource createLocalCopy(DocumentSource in) throws IOException
createLocalCopy
in interface LocalCopyFactory
IOException
Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.