public class RegionFile
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
RegionFile(java.io.File file) |
RegionFile(java.nio.file.Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
has(int x,
int z) |
@Nullable java.io.DataInputStream |
read(int x,
int z) |
@Nullable java.io.DataOutputStream |
write(int x,
int z) |
protected void |
write(int x,
int z,
byte[] data,
int length) |
public RegionFile(java.nio.file.Path path)
throws java.io.IOException
java.io.IOExceptionpublic RegionFile(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic boolean has(int x,
int z)
public @Nullable java.io.DataInputStream read(int x,
int z)
throws java.io.IOException
java.io.IOExceptionpublic @Nullable java.io.DataOutputStream write(int x,
int z)
protected void write(int x,
int z,
byte[] data,
int length)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException