org.jboss.dna.graph.property.basic
Class InMemoryBinaryValueFactory
java.lang.Object
org.jboss.dna.graph.property.basic.AbstractValueFactory<Binary>
org.jboss.dna.graph.property.basic.AbstractBinaryValueFactory
org.jboss.dna.graph.property.basic.InMemoryBinaryValueFactory
- All Implemented Interfaces:
- BinaryFactory, ValueFactory<Binary>
@Immutable
public class InMemoryBinaryValueFactory
- extends AbstractBinaryValueFactory
The ValueFactory
for in-memory PropertyType.BINARY
values.
This factory does not reuse
any instances.
- Author:
- Randall Hauch
Method Summary |
Binary |
create(byte[] value)
Create a value from the binary content given by the supplied array. |
Methods inherited from class org.jboss.dna.graph.property.basic.AbstractBinaryValueFactory |
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, find |
Methods inherited from class org.jboss.dna.graph.property.basic.AbstractValueFactory |
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, getDecoder, getPropertyType |
Methods inherited from interface org.jboss.dna.graph.property.ValueFactory |
create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, create, getPropertyType |
InMemoryBinaryValueFactory
public InMemoryBinaryValueFactory(TextDecoder decoder,
ValueFactory<String> stringValueFactory)
create
public Binary create(byte[] value)
- Create a value from the binary content given by the supplied array.
- Parameters:
value
- the content to be used to create the value
- Returns:
- the value, or null if the supplied stream is null
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.