clean up libjava includes

This commit is contained in:
Tropical
2026-03-31 02:00:20 -05:00
parent bed181cd59
commit ea539a7e58
32 changed files with 100 additions and 30 deletions

View File

@@ -1,4 +1,6 @@
#pragma once
#include <vector>
#include "Buffer.h"
#include "../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO

View File

@@ -1,7 +1,11 @@
#pragma once
#include <stdint.h>
#include <vector>
#include <cstdint>
#include <vector>
#include "OutputStream.h"
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
class BufferedOutputStream : public OutputStream {
private:

View File

@@ -2,6 +2,8 @@
#include "Reader.h"
#include <string>
class BufferedReader : public Reader {
private:
Reader* reader;

View File

@@ -1,8 +1,10 @@
#pragma once
// 4J Stu - Represents Java standard library class
#include <vector>
#include <cstdint>
#include "InputStream.h"
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
class ByteArrayInputStream : public InputStream {
protected:

View File

@@ -1,7 +1,9 @@
#pragma once
#include "OutputStream.h"
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include <vector>
#include <cstdint>
class ByteArrayOutputStream : public OutputStream {
// Note - when actually implementing, std::vector<uint8_t> will need to grow as data is

View File

@@ -1,6 +1,8 @@
#pragma once
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include <vector>
#include <string>
#include <cstdint>
class DataInput {
public:

View File

@@ -3,12 +3,11 @@
// intermediate inheritance class that we don't care about)
#include <string>
#include <cstdint>
#include "InputStream.h"
#include "DataInput.h"
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
class DataInputStream : public InputStream, public DataInput {
private:
InputStream* stream;

View File

@@ -1,6 +1,8 @@
#pragma once
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include <vector>
#include <string>
#include <cstdint>
class DataOutput {
public:

View File

@@ -4,9 +4,6 @@
#include <string>
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include "OutputStream.h"
#include "DataOutput.h"

View File

@@ -4,8 +4,6 @@
#include <cstdio>
#include <cstdint>
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include "InputStream.h"
class File;

View File

@@ -3,8 +3,6 @@
#include <cstdio>
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include "OutputStream.h"
class File;

View File

@@ -4,8 +4,6 @@
#include <cstdint>
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include "InputStream.h"
class GZIPInputStream : public InputStream {

View File

@@ -2,8 +2,6 @@
// 4J Stu - We are not using GZIP compression, so this is just a pass through
// class
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include "OutputStream.h"
class GZIPOutputStream : public OutputStream {

View File

@@ -1,10 +1,9 @@
#pragma once
#include <vector>
#include <cstdint>
#include <string>
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
// 4J Stu - Represents Java standard lib abstract
class InputStream {

View File

@@ -1,7 +1,5 @@
#pragma once
#include "../../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
// 4J Stu - Represents Java standard lib abstract
class OutputStream {

View File

@@ -1,7 +1,8 @@
#pragma once
#include "../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include <vector>
#include "../../../Minecraft.World/ConsoleHelpers/ArrayWithLength.h" // 4jcraft TODO
#include "Buffer.h"
class IntBuffer : public Buffer {