-
-
Notifications
You must be signed in to change notification settings - Fork 427
/
SentryFileWriter.java
37 lines (30 loc) · 1.2 KB
/
SentryFileWriter.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package io.sentry.instrumentation.file;
import io.sentry.IHub;
import java.io.File;
import java.io.FileDescriptor;
import java.io.FileNotFoundException;
import java.io.OutputStreamWriter;
import org.jetbrains.annotations.NotNull;
public final class SentryFileWriter extends OutputStreamWriter {
public SentryFileWriter(final @NotNull String fileName) throws FileNotFoundException {
super(new SentryFileOutputStream(fileName));
}
public SentryFileWriter(final @NotNull String fileName, final boolean append)
throws FileNotFoundException {
super(new SentryFileOutputStream(fileName, append));
}
public SentryFileWriter(final @NotNull File file) throws FileNotFoundException {
super(new SentryFileOutputStream(file));
}
public SentryFileWriter(final @NotNull File file, final boolean append)
throws FileNotFoundException {
super(new SentryFileOutputStream(file, append));
}
public SentryFileWriter(final @NotNull FileDescriptor fd) {
super(new SentryFileOutputStream(fd));
}
SentryFileWriter(final @NotNull File file, final boolean append, final @NotNull IHub hub)
throws FileNotFoundException {
super(new SentryFileOutputStream(file, append, hub));
}
}