You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.5 KiB
113 lines
2.5 KiB
.class public final Lcom/google/common/io/Flushables; |
|
.super Ljava/lang/Object; |
|
.source "Flushables.java" |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final logger:Ljava/util/logging/Logger; |
|
|
|
|
|
# direct methods |
|
.method static constructor <clinit>()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 34 |
|
const-class v0, Lcom/google/common/io/Flushables; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v0}, Ljava/util/logging/Logger;->getLogger(Ljava/lang/String;)Ljava/util/logging/Logger; |
|
|
|
move-result-object v0 |
|
|
|
sput-object v0, Lcom/google/common/io/Flushables;->logger:Ljava/util/logging/Logger; |
|
|
|
return-void |
|
.end method |
|
|
|
.method private constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 37 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static flush(Ljava/io/Flushable;Z)V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 56 |
|
:try_start_0 |
|
invoke-interface {p0}, Ljava/io/Flushable;->flush()V |
|
:try_end_0 |
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 65 |
|
:goto_0 |
|
return-void |
|
|
|
.line 57 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 58 |
|
if-eqz p1, :cond_0 |
|
|
|
.line 59 |
|
sget-object v1, Lcom/google/common/io/Flushables;->logger:Ljava/util/logging/Logger; |
|
|
|
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level; |
|
|
|
const-string v3, "IOException thrown while flushing Flushable." |
|
|
|
invoke-virtual {v1, v2, v3, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 62 |
|
:cond_0 |
|
throw v0 |
|
.end method |
|
|
|
.method public static flushQuietly(Ljava/io/Flushable;)V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 75 |
|
const/4 v0, 0x1 |
|
|
|
:try_start_0 |
|
invoke-static {p0, v0}, Lcom/google/common/io/Flushables;->flush(Ljava/io/Flushable;Z)V |
|
:try_end_0 |
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 79 |
|
:goto_0 |
|
return-void |
|
|
|
.line 76 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 77 |
|
sget-object v1, Lcom/google/common/io/Flushables;->logger:Ljava/util/logging/Logger; |
|
|
|
sget-object v2, Ljava/util/logging/Level;->SEVERE:Ljava/util/logging/Level; |
|
|
|
const-string v3, "IOException should not have been thrown." |
|
|
|
invoke-virtual {v1, v2, v3, v0}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V |
|
|
|
goto :goto_0 |
|
.end method
|
|
|