final class oadd.com.google.common.io.MoreFiles$PathByteSource extends oadd.com.google.common.io.ByteSource
{
private static final java.nio.file.LinkOption[] FOLLOW_LINKS;
private final java.nio.file.Path path;
private final java.nio.file.OpenOption[] options;
private final boolean followLinks;
private transient void <init>(java.nio.file.Path, java.nio.file.OpenOption[])
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.nio.file.OpenOption[] v, v;
java.lang.Object v, v;
java.nio.file.Path v;
boolean v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v := @parameter: java.nio.file.Path;
v := @parameter: java.nio.file.OpenOption[];
specialinvoke v.<oadd.com.google.common.io.ByteSource: void <init>()>();
v = staticinvoke <oadd.com.google.common.base.Preconditions: java.lang.Object checkNotNull(java.lang.Object)>(v);
v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.Path path> = v;
v = virtualinvoke v.<java.lang.Object: java.lang.Object clone()>();
v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.OpenOption[] options> = v;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.OpenOption[] options>;
v = staticinvoke <oadd.com.google.common.io.MoreFiles$PathByteSource: boolean followLinks(java.nio.file.OpenOption[])>(v);
v.<oadd.com.google.common.io.MoreFiles$PathByteSource: boolean followLinks> = v;
return;
}
private static boolean followLinks(java.nio.file.OpenOption[])
{
java.nio.file.LinkOption v;
java.nio.file.OpenOption v;
java.nio.file.OpenOption[] v;
int v, v;
v := @parameter: java.nio.file.OpenOption[];
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = <java.nio.file.LinkOption: java.nio.file.LinkOption NOFOLLOW_LINKS>;
if v != v goto label;
return 0;
label:
v = v + 1;
goto label;
label:
return 1;
}
public java.io.InputStream openStream() throws java.io.IOException
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.nio.file.OpenOption[] v;
java.nio.file.Path v;
java.io.InputStream v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.Path path>;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.OpenOption[] options>;
v = staticinvoke <java.nio.file.Files: java.io.InputStream newInputStream(java.nio.file.Path,java.nio.file.OpenOption[])>(v, v);
return v;
}
private java.nio.file.attribute.BasicFileAttributes readAttributes() throws java.io.IOException
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.nio.file.LinkOption v;
java.nio.file.LinkOption[] v;
java.nio.file.attribute.BasicFileAttributes v;
java.nio.file.Path v;
boolean v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.Path path>;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: boolean followLinks>;
if v == 0 goto label;
v = <oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.LinkOption[] FOLLOW_LINKS>;
goto label;
label:
v = newarray (java.nio.file.LinkOption)[1];
v = <java.nio.file.LinkOption: java.nio.file.LinkOption NOFOLLOW_LINKS>;
v[0] = v;
label:
v = staticinvoke <java.nio.file.Files: java.nio.file.attribute.BasicFileAttributes readAttributes(java.nio.file.Path,java.lang.Class,java.nio.file.LinkOption[])>(v, class "Ljava/nio/file/attribute/BasicFileAttributes;", v);
return v;
}
public oadd.com.google.common.base.Optional sizeIfKnown()
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.io.IOException v;
long v;
java.nio.file.attribute.BasicFileAttributes v;
java.lang.Long v;
oadd.com.google.common.base.Optional v, v, v;
boolean v, v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
label:
v = specialinvoke v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.attribute.BasicFileAttributes readAttributes()>();
label:
goto label;
label:
v := @caughtexception;
v = staticinvoke <oadd.com.google.common.base.Optional: oadd.com.google.common.base.Optional absent()>();
return v;
label:
v = interfaceinvoke v.<java.nio.file.attribute.BasicFileAttributes: boolean isDirectory()>();
if v != 0 goto label;
v = interfaceinvoke v.<java.nio.file.attribute.BasicFileAttributes: boolean isSymbolicLink()>();
if v == 0 goto label;
label:
v = staticinvoke <oadd.com.google.common.base.Optional: oadd.com.google.common.base.Optional absent()>();
return v;
label:
v = interfaceinvoke v.<java.nio.file.attribute.BasicFileAttributes: long size()>();
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v = staticinvoke <oadd.com.google.common.base.Optional: oadd.com.google.common.base.Optional of(java.lang.Object)>(v);
return v;
catch java.io.IOException from label to label with label;
}
public long size() throws java.io.IOException
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.io.IOException v, v;
long v;
java.nio.file.attribute.BasicFileAttributes v;
boolean v, v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v = specialinvoke v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.attribute.BasicFileAttributes readAttributes()>();
v = interfaceinvoke v.<java.nio.file.attribute.BasicFileAttributes: boolean isDirectory()>();
if v == 0 goto label;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String)>("can\'t read: is a directory");
throw v;
label:
v = interfaceinvoke v.<java.nio.file.attribute.BasicFileAttributes: boolean isSymbolicLink()>();
if v == 0 goto label;
v = new java.io.IOException;
specialinvoke v.<java.io.IOException: void <init>(java.lang.String)>("can\'t read: is a symbolic link");
throw v;
label:
v = interfaceinvoke v.<java.nio.file.attribute.BasicFileAttributes: long size()>();
return v;
}
public byte[] read() throws java.io.IOException
{
java.lang.Throwable v;
oadd.com.google.common.io.MoreFiles$PathByteSource v;
byte[] v;
long v;
java.nio.channels.SeekableByteChannel v;
java.nio.file.OpenOption[] v;
java.nio.file.Path v;
java.io.InputStream v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.Path path>;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.OpenOption[] options>;
v = staticinvoke <java.nio.file.Files: java.nio.channels.SeekableByteChannel newByteChannel(java.nio.file.Path,java.nio.file.OpenOption[])>(v, v);
label:
v = staticinvoke <java.nio.channels.Channels: java.io.InputStream newInputStream(java.nio.channels.ReadableByteChannel)>(v);
v = interfaceinvoke v.<java.nio.channels.SeekableByteChannel: long size()>();
v = staticinvoke <oadd.com.google.common.io.ByteStreams: byte[] toByteArray(java.io.InputStream,long)>(v, v);
label:
interfaceinvoke v.<java.nio.channels.SeekableByteChannel: void close()>();
return v;
label:
v := @caughtexception;
throw v;
catch java.lang.Throwable from label to label with label;
}
public oadd.com.google.common.io.CharSource asCharSource(java.nio.charset.Charset)
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.nio.charset.Charset v;
java.nio.file.OpenOption[] v;
int v;
oadd.com.google.common.io.CharSource v;
oadd.com.google.common.io.MoreFiles$PathByteSource$1 v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v := @parameter: java.nio.charset.Charset;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.OpenOption[] options>;
v = lengthof v;
if v != 0 goto label;
v = new oadd.com.google.common.io.MoreFiles$PathByteSource$1;
specialinvoke v.<oadd.com.google.common.io.MoreFiles$PathByteSource$1: void <init>(oadd.com.google.common.io.MoreFiles$PathByteSource,java.nio.charset.Charset)>(v, v);
return v;
label:
v = specialinvoke v.<oadd.com.google.common.io.ByteSource: oadd.com.google.common.io.CharSource asCharSource(java.nio.charset.Charset)>(v);
return v;
}
public java.lang.String toString()
{
oadd.com.google.common.io.MoreFiles$PathByteSource v;
java.nio.file.OpenOption[] v;
int v, v, v, v;
java.lang.StringBuilder v;
java.lang.String v, v, v, v, v;
java.nio.file.Path v;
v := @this: oadd.com.google.common.io.MoreFiles$PathByteSource;
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.Path path>;
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
v = v.<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.OpenOption[] options>;
v = staticinvoke <java.util.Arrays: java.lang.String toString(java.lang.Object[])>(v);
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
v = virtualinvoke v.<java.lang.String: int length()>();
v = 26 + v;
v = staticinvoke <java.lang.String: java.lang.String valueOf(java.lang.Object)>(v);
v = virtualinvoke v.<java.lang.String: int length()>();
v = v + v;
specialinvoke v.<java.lang.StringBuilder: void <init>(int)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("MoreFiles.asByteSource(\u, \u)");
return v;
}
static void <clinit>()
{
java.nio.file.LinkOption[] v;
v = newarray (java.nio.file.LinkOption)[0];
<oadd.com.google.common.io.MoreFiles$PathByteSource: java.nio.file.LinkOption[] FOLLOW_LINKS> = v;
return;
}
}