Class VFile
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.internal.vfs.VFile
-
- Direct Known Subclasses:
VIteratorFile
public class VFile extends java.lang.Object
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
altPathSeperator
protected java.lang.String
path
static java.lang.String
pathSeperator
-
Constructor Summary
Constructors Constructor Description VFile(java.lang.Object... p)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRead()
boolean
canWrite()
static java.lang.String
createPath(java.lang.Object... p)
boolean
delete()
int
deleteAll()
boolean
equals(java.lang.Object o)
boolean
exists()
byte[]
getAllBytes()
byte[]
getAllBytes(boolean copy)
java.lang.String
getAllChars()
java.lang.String[]
getAllLines()
void
getBytes(int fileOffset, byte[] array, int offset, int length)
java.io.InputStream
getInputStream()
java.lang.String
getName()
java.io.OutputStream
getOutputStream()
java.lang.String
getParent()
java.lang.String
getPath()
int
hashCode()
boolean
isRelative()
int
length()
java.util.List<java.lang.String>
list()
static java.lang.String
normalizePath(java.lang.String p)
boolean
renameTo(java.lang.String p, boolean copy)
boolean
setAllBytes(byte[] bytes)
boolean
setAllBytes(byte[] bytes, boolean copy)
boolean
setAllChars(java.lang.String bytes)
void
setCacheEnabled()
static java.lang.String[]
splitPath(java.lang.String p)
java.lang.String
toString()
-
-
-
Field Detail
-
pathSeperator
public static final java.lang.String pathSeperator
- See Also:
- Constant Field Values
-
altPathSeperator
public static final java.lang.String[] altPathSeperator
-
path
protected java.lang.String path
-
-
Method Detail
-
normalizePath
public static java.lang.String normalizePath(java.lang.String p)
-
splitPath
public static java.lang.String[] splitPath(java.lang.String p)
-
createPath
public static java.lang.String createPath(java.lang.Object... p)
-
getInputStream
public java.io.InputStream getInputStream()
-
getOutputStream
public java.io.OutputStream getOutputStream()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isRelative
public boolean isRelative()
-
canRead
public boolean canRead()
-
getPath
public java.lang.String getPath()
-
getName
public java.lang.String getName()
-
canWrite
public boolean canWrite()
-
getParent
public java.lang.String getParent()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
exists
public boolean exists()
-
delete
public boolean delete()
-
renameTo
public boolean renameTo(java.lang.String p, boolean copy)
-
length
public int length()
-
getBytes
public void getBytes(int fileOffset, byte[] array, int offset, int length)
-
setCacheEnabled
public void setCacheEnabled()
-
getAllBytes
public byte[] getAllBytes()
-
getAllChars
public java.lang.String getAllChars()
-
getAllLines
public java.lang.String[] getAllLines()
-
getAllBytes
public byte[] getAllBytes(boolean copy)
-
setAllChars
public boolean setAllChars(java.lang.String bytes)
-
setAllBytes
public boolean setAllBytes(byte[] bytes)
-
setAllBytes
public boolean setAllBytes(byte[] bytes, boolean copy)
-
list
public java.util.List<java.lang.String> list()
-
deleteAll
public int deleteAll()
-
-