Package dev.themeinerlp.plugindebug
Class DebugBuilder<T extends DebugBuilder<T>>
java.lang.Object
dev.themeinerlp.plugindebug.DebugBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.gson.Gsonprotected final longprotected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a debug file RAW into the debug zipAdd a debug file RAW into the debug zipAdd a json string as a file into the debug zipAdd a text as a file into the debug zipAdd a json string as a file into the debug zipstatic DebugBuilder<?>Creates a builder instance with the given bytebin serverupload()Upload the debug to bytebin server
-
Field Details
-
fileToUpload
-
tempFile
- See Also:
-
gson
protected com.google.gson.Gson gson -
maxZipFileSize
protected final long maxZipFileSize- See Also:
-
-
Constructor Details
-
DebugBuilder
-
-
Method Details
-
addFile
Add a debug file RAW into the debug zip -
addFile
Add a debug file RAW into the debug zip- Parameters:
filePath- to collect into the zipfileType- to display in the frontenduiTabName- to display tn the frontend
-
addText
Add a text as a file into the debug zip- Parameters:
text- to collect into the zipuiTabName- to display tn the frontend- Throws:
IOException
-
addJson
Add a json string as a file into the debug zip- Parameters:
json- to collect into the zipuiTabName- to display tn the frontend- Throws:
IOException
-
addYAML
Add a json string as a file into the debug zip- Parameters:
yaml- to collect into the zipuiTabName- to display tn the frontend- Throws:
IOException
-
upload
Upload the debug to bytebin server- Returns:
- an object with bytebin server address and upload code
- Throws:
IOException- throws when java don't have access to temp dir
-
builder
Creates a builder instance with the given bytebin server- Parameters:
uploadServer- bytebin server base url
-