@Test public void shouldConstructFromEmptyByteArray() { validByteArrayContent = new byte[0]; binary = new InMemoryBinaryValue(store, validByteArrayContent); assertThat(binary.getSize(), is(0l)); assertThat(binary, hasNoContent()); }
@Override public long getSize() { return bytes.length; }
InMemoryBinaryValue extends AbstractBinary { @Override public long getSize() { return bytes.length; } }
InMemoryBinaryValue extends AbstractBinary { @Override public long getSize() { return bytes.length; } InMemoryBinaryValue( BinaryStore store,
                                byte[] bytes );  InMemoryBinaryValue( BinaryStore store,
                                BinaryKey key,
                                byte[] bytes ); }
InMemoryBinaryValue extends AbstractBinary { @Override public long getSize() { return bytes.length; } InMemoryBinaryValue( BinaryStore store,
                                byte[] bytes );  InMemoryBinaryValue( BinaryStore store,
                                BinaryKey key,
                                byte[] bytes ); @Override long getSize(); byte[] getBytes(); @Override String getMimeType(); @Override String getMimeType( String name ); }
InMemoryBinaryValue extends AbstractBinary { @Override public long getSize() { return bytes.length; } InMemoryBinaryValue( BinaryStore store,
                                byte[] bytes );  InMemoryBinaryValue( BinaryStore store,
                                BinaryKey key,
                                byte[] bytes ); @Override long getSize(); byte[] getBytes(); @Override String getMimeType(); @Override String getMimeType( String name );  }