@Test public void size() throws Exception { for (int n = 0; n < 16; n++) { byte[] bytes = new byte[n]; String base64Data = BaseEncoding.base64().encode(bytes); ByteSource decodingSource = Base64ByteSource.wrap(base64Data); assertEquals(String.format("base64 length %d", base64Data.length()), n, decodingSource.size()); } }
@Override public long size() { return decodedLength; }
Base64ByteSource extends ByteSource { @Override public long size() { return decodedLength; } }
Base64ByteSource extends ByteSource { @Override public long size() { return decodedLength; } protected  Base64ByteSource(String base64Data); }
Base64ByteSource extends ByteSource { @Override public long size() { return decodedLength; } protected  Base64ByteSource(String base64Data); @Override InputStream openStream(); @Override boolean isEmpty(); @SuppressWarnings("Guava") @Override com.google.common.base.Optional<Long> sizeIfKnown(); @Override long size(); static Base64ByteSource wrap(String base64Data); }
Base64ByteSource extends ByteSource { @Override public long size() { return decodedLength; } protected  Base64ByteSource(String base64Data); @Override InputStream openStream(); @Override boolean isEmpty(); @SuppressWarnings("Guava") @Override com.google.common.base.Optional<Long> sizeIfKnown(); @Override long size(); static Base64ByteSource wrap(String base64Data);  }