![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.io.ByteSource$SlicedByteSource.class Maven / Gradle / Ivy
???? 4 ? 0com/google/common/io/ByteSource$SlicedByteSource this$0 !Lcom/google/common/io/ByteSource;
com/google/common/io/ByteSource ()V offset (%s) may not be negative
$com/google/common/base/Preconditions
checkArgument (ZLjava/lang/String;J)V length (%s) may not be negative offset J length
!
openStream ()Ljava/io/InputStream;
# $ % sliceStream ,(Ljava/io/InputStream;)Ljava/io/InputStream;
' ( ! openBufferedStream
* + , - . com/google/common/io/ByteStreams skipUpTo (Ljava/io/InputStream;J)J 0 java/lang/Throwable
2 3 4 5 6 com/google/common/io/Closer create ()Lcom/google/common/io/Closer;
2 8 9 : register ((Ljava/io/Closeable;)Ljava/io/Closeable;
2 < = > rethrow 3(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
2 @ A close
C @ D java/io/InputStream F java/io/ByteArrayInputStream
E H I ([B)V
* K L M limit -(Ljava/io/InputStream;J)Ljava/io/InputStream;
O P Q empty #()Lcom/google/common/io/ByteSource;
S T U V W java/lang/Math min (JJ)J
Y Z [ slice %(JJ)Lcom/google/common/io/ByteSource;
] ^ _ isEmpty ()Z
a b c sizeIfKnown #()Lcom/google/common/base/Optional;
e f g h _ com/google/common/base/Optional isPresent
e j k l get ()Ljava/lang/Object; n java/lang/Long
m p q r longValue ()J
m t u v valueOf (J)Ljava/lang/Long;
e x y z of 5(Ljava/lang/Object;)Lcom/google/common/base/Optional;
e | } c absent java/lang/StringBuilder
~
? ? ? ? ? java/lang/Object toString ()Ljava/lang/String;
~ ? ? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? .slice(
~ ? ? ? (J)Ljava/lang/StringBuilder; ? , ? )
~ ? &(Lcom/google/common/io/ByteSource;JJ)V Code LineNumberTable LocalVariableTable this 2Lcom/google/common/io/ByteSource$SlicedByteSource;
StackMapTable MethodParameters
Exceptions ? java/io/IOException skipped closer Lcom/google/common/io/Closer; e Ljava/lang/Throwable; in Ljava/io/InputStream; maxLength unslicedSize off optionalUnslicedSize !Lcom/google/common/base/Optional; LocalVariableTypeTable 3Lcom/google/common/base/Optional; Signature 5()Lcom/google/common/base/Optional;
SourceFile ByteSource.java InnerClasses SlicedByteSource 0 ? ? ? 9*+? *? ?? ?
? ?? ? ? * ? *? ? ? ? ? ? -? 2? 8? ? 9 ? ? 9 9 ? ? @@ ?
! ? 6 **? ? ? "? ? ? ? ? ? ? ? ( ! ? 6 **? ? &? "? ? ? ? ? ? ? $ % ? ' V*? ?? G+*? ? )A? #:? 1:+? 7W? ;?:? ?? *? ?? +? B? EY?? G?+*? ? J? / # - + ? 6
# + 2 5 > B M ? > ? ? ? ? ? 5 ? V ? ? V ? ? ? / U /? C / 2 /? C ? ? ? ? ? Z [ ? ? K ?? ?
? ! ?? ? !? *? e7 ?? ? N? *? *? a!? R? X? ? ! " "# *$ 1% 7&