
com.google.common.io.ByteSource.class Maven / Gradle / Ivy
The newest version!
???? 2 ? ?
3 ? ?
?
2 ? ?
? ?
?
2 ?
? ?
? ? ?
?
? ?
? ? ?
?
? ? ?
? ?
? ?
2 ? ?
? ? ???
? ?
? ?
? ?
? ? ?
? ?
? ? ? ?
? ?
2 ? ? ?
? ?
? ?
? ? ?
* ?
? ?
2 ?
? ? ?
/ ? 6 ? ? ? ConcatenatedByteSource InnerClasses ? EmptyByteSource ByteArrayByteSource SlicedByteSource AsCharSource ()V Code LineNumberTable LocalVariableTable this !Lcom/google/common/io/ByteSource; asCharSource =(Ljava/nio/charset/Charset;)Lcom/google/common/io/CharSource; charset Ljava/nio/charset/Charset;
openStream ()Ljava/io/InputStream;
Exceptions openBufferedStream in Ljava/io/InputStream;
StackMapTable ? ? slice %(JJ)Lcom/google/common/io/ByteSource; offset J length isEmpty ()Z e Ljava/lang/Throwable; sizeIfKnown !Lcom/google/common/base/Optional; closer Lcom/google/common/io/Closer; LocalVariableTypeTable 3Lcom/google/common/base/Optional; ? ? ? ? #()Lcom/google/common/base/Optional; Signature 5()Lcom/google/common/base/Optional; RuntimeInvisibleAnnotations $Lcom/google/common/annotations/Beta; size ()J Ljava/io/IOException; ? countBySkipping (Ljava/io/InputStream;)J count skipped copyTo (Ljava/io/OutputStream;)J output Ljava/io/OutputStream; ? 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; "(Lcom/google/common/io/ByteSink;)J out sink Lcom/google/common/io/ByteSink; ? read ()[B 8(Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object; processor $Lcom/google/common/io/ByteProcessor; )Lcom/google/common/io/ByteProcessor; ? D(Lcom/google/common/io/ByteProcessor;)TT; hash H(Lcom/google/common/hash/HashFunction;)Lcom/google/common/hash/HashCode; hashFunction %Lcom/google/common/hash/HashFunction; hasher Lcom/google/common/hash/Hasher;
contentEquals $(Lcom/google/common/io/ByteSource;)Z read1 I read2 in1 in2 other buf1 [B buf2 ? concat 7(Ljava/lang/Iterable;)Lcom/google/common/io/ByteSource; sources Ljava/lang/Iterable; 8Ljava/lang/Iterable<+Lcom/google/common/io/ByteSource;>; [(Ljava/lang/Iterable<+Lcom/google/common/io/ByteSource;>;)Lcom/google/common/io/ByteSource; 7(Ljava/util/Iterator;)Lcom/google/common/io/ByteSource; Ljava/util/Iterator; 8Ljava/util/Iterator<+Lcom/google/common/io/ByteSource;>; [(Ljava/util/Iterator<+Lcom/google/common/io/ByteSource;>;)Lcom/google/common/io/ByteSource; E([Lcom/google/common/io/ByteSource;)Lcom/google/common/io/ByteSource; "[Lcom/google/common/io/ByteSource; wrap %([B)Lcom/google/common/io/ByteSource; b empty #()Lcom/google/common/io/ByteSource;
SourceFile ByteSource.java /Lcom/google/common/annotations/GwtIncompatible; ? ? ? ; < ,com/google/common/io/ByteSource$AsCharSource ; ? F G java/io/BufferedInputStream ; ? 0com/google/common/io/ByteSource$SlicedByteSource ; ? X b ? ? U ? ? java/lang/Long ? h ? ? ? ? ? java/io/InputStream z ? ? < java/lang/Throwable ? ? ? b k l java/io/IOException ? ? l ? ? ? ? F java/io/OutputStream
o p ? { z 6com/google/common/io/ByteSource$ConcatenatedByteSource ; ? ? 3com/google/common/io/ByteSource$ByteArrayByteSource ; com/google/common/io/ByteSource java/lang/Object /com/google/common/io/ByteSource$EmptyByteSource com/google/common/base/Optional com/google/common/io/Closer com/google/common/io/ByteSink "com/google/common/io/ByteProcessor java/lang/Integer MAX_VALUE >(Lcom/google/common/io/ByteSource;Ljava/nio/charset/Charset;)V (Ljava/io/InputStream;)V &(Lcom/google/common/io/ByteSource;JJ)V isPresent get ()Ljava/lang/Object; longValue create ()Lcom/google/common/io/Closer; register ((Ljava/io/Closeable;)Ljava/io/Closeable; ()I close rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException; absent com/google/common/io/ByteStreams exhaust skipUpTo (Ljava/io/InputStream;J)J $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)J ()Ljava/io/OutputStream; toByteArray (Ljava/io/InputStream;)[B readBytes M(Ljava/io/InputStream;Lcom/google/common/io/ByteProcessor;)Ljava/lang/Object; #com/google/common/hash/HashFunction newHasher !()Lcom/google/common/hash/Hasher; com/google/common/hash/Funnels asOutputStream >(Lcom/google/common/hash/PrimitiveSink;)Ljava/io/OutputStream; com/google/common/hash/Hasher #()Lcom/google/common/hash/HashCode; createBuffer (Ljava/io/InputStream;[BII)I java/util/Arrays equals ([B[B)Z (Ljava/lang/Iterable;)V 'com/google/common/collect/ImmutableList copyOf ?(Ljava/util/Iterator;)Lcom/google/common/collect/ImmutableList; >([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList; ([B)V INSTANCE 1Lcom/google/common/io/ByteSource$EmptyByteSource;! 2 3 ; <