Skip to content

Commit 41b21f4

Browse files
committed
created overload methods for Cs2dMap Reader/Writer
1 parent 5c5e843 commit 41b21f4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/main/java/net/ddns/endercypt/cs2dmap/library/file/read/Cs2dMapReader.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919

2020
public class Cs2dMapReader
2121
{
22+
public static Cs2dMap read(String file) throws FileNotFoundException, IOException
23+
{
24+
return read(new File(file));
25+
}
26+
2227
public static Cs2dMap read(File file) throws FileNotFoundException, IOException
2328
{
2429
RawCs2dMap rawCs2dMap = new RawCs2dMap();

src/main/java/net/ddns/endercypt/cs2dmap/library/file/write/Cs2dMapWriter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
public class Cs2dMapWriter
1616
{
17+
public static void write(Cs2dMap cs2dMap, String file) throws FileNotFoundException, IOException
18+
{
19+
write(cs2dMap, new File(file));
20+
}
21+
1722
public static void write(Cs2dMap cs2dMap, File file) throws FileNotFoundException, IOException
1823
{
1924
RawCs2dMap rawCs2dMap = cs2dMap.getRaw();

0 commit comments

Comments
 (0)