public final class RegionFile
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Class and Description | 
|---|---|
| static class  | RegionFile.InvalidRegionFileException | 
| Constructor and Description | 
|---|
| RegionFile() | 
| RegionFile(java.io.File path) | 
| RegionFile(java.io.File path,
          boolean readOnly) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| boolean | containsChunk(int x,
             int z) | 
| void | delete(int x,
      int z) | 
| int | getChunkCount() | 
| java.io.DataInputStream | getChunkDataInputStream(int x,
                       int z) | 
| java.io.DataOutputStream | getChunkDataOutputStream(int x,
                        int z) | 
| int | getSizeDelta() | 
| int | getX() | 
| int | getZ() | 
| boolean | isReadOnly() | 
| long | lastModified() | 
| java.lang.String | toString() | 
| protected void | write(int x,
     int z,
     byte[] data,
     int length) | 
public RegionFile()
public RegionFile(java.io.File path)
           throws java.io.IOException
java.io.IOExceptionpublic RegionFile(java.io.File path,
                  boolean readOnly)
           throws java.io.IOException
java.io.IOExceptionpublic int getX()
public int getZ()
public long lastModified()
public int getSizeDelta()
public java.io.DataInputStream getChunkDataInputStream(int x,
                                                       int z)
                                                throws java.io.IOException
java.io.IOExceptionpublic java.io.DataOutputStream getChunkDataOutputStream(int x,
                                                         int z)
public boolean containsChunk(int x,
                             int z)
public void close()
           throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOExceptionpublic boolean isReadOnly()
public int getChunkCount()
public void delete(int x,
                   int z)
            throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectprotected void write(int x,
                     int z,
                     byte[] data,
                     int length)
              throws java.io.IOException
java.io.IOException