Package com.github.mike10004.xvfbmanager
Class Screenshot.FileByteSource
- java.lang.Object
-
- com.google.common.io.ByteSource
-
- com.github.mike10004.xvfbmanager.Screenshot.FileByteSource
-
- Enclosing interface:
- Screenshot
public static class Screenshot.FileByteSource extends com.google.common.io.ByteSource
-
-
Constructor Summary
Constructors Modifier Constructor Description FileByteSource(File file)protectedFileByteSource(File file, com.google.common.io.ByteSource delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.io.CharSourceasCharSource(Charset charset)booleancontentEquals(com.google.common.io.ByteSource other)longcopyTo(com.google.common.io.ByteSink sink)longcopyTo(OutputStream output)com.google.common.hash.HashCodehash(com.google.common.hash.HashFunction hashFunction)booleanisEmpty()InputStreamopenBufferedStream()InputStreamopenStream()byte[]read()<T> Tread(com.google.common.io.ByteProcessor<T> processor)longsize()com.google.common.base.Optional<Long>sizeIfKnown()com.google.common.io.ByteSourceslice(long offset, long length)
-
-
-
Field Detail
-
file
public final File file
-
-
Method Detail
-
asCharSource
public com.google.common.io.CharSource asCharSource(Charset charset)
- Overrides:
asCharSourcein classcom.google.common.io.ByteSource
-
openStream
public InputStream openStream() throws IOException
- Specified by:
openStreamin classcom.google.common.io.ByteSource- Throws:
IOException
-
openBufferedStream
public InputStream openBufferedStream() throws IOException
- Overrides:
openBufferedStreamin classcom.google.common.io.ByteSource- Throws:
IOException
-
slice
public com.google.common.io.ByteSource slice(long offset, long length)- Overrides:
slicein classcom.google.common.io.ByteSource
-
isEmpty
public boolean isEmpty() throws IOException- Overrides:
isEmptyin classcom.google.common.io.ByteSource- Throws:
IOException
-
sizeIfKnown
@Beta public com.google.common.base.Optional<Long> sizeIfKnown()
- Overrides:
sizeIfKnownin classcom.google.common.io.ByteSource
-
size
public long size() throws IOException- Overrides:
sizein classcom.google.common.io.ByteSource- Throws:
IOException
-
copyTo
public long copyTo(OutputStream output) throws IOException
- Overrides:
copyToin classcom.google.common.io.ByteSource- Throws:
IOException
-
copyTo
public long copyTo(com.google.common.io.ByteSink sink) throws IOException- Overrides:
copyToin classcom.google.common.io.ByteSource- Throws:
IOException
-
read
public byte[] read() throws IOException- Overrides:
readin classcom.google.common.io.ByteSource- Throws:
IOException
-
read
@Beta public <T> T read(com.google.common.io.ByteProcessor<T> processor) throws IOException- Overrides:
readin classcom.google.common.io.ByteSource- Throws:
IOException
-
hash
public com.google.common.hash.HashCode hash(com.google.common.hash.HashFunction hashFunction) throws IOException- Overrides:
hashin classcom.google.common.io.ByteSource- Throws:
IOException
-
contentEquals
public boolean contentEquals(com.google.common.io.ByteSource other) throws IOException- Overrides:
contentEqualsin classcom.google.common.io.ByteSource- Throws:
IOException
-
-