Package helper
Class SubmitToGitHub
java.lang.Object
helper.SubmitToGitHub
Contains methods for uploading files to a GitHub repository through GitHub's REST API.
- Author:
- Afonso Sampaio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createFile
(String filename) Creates a file to be sent through a PUT request to GitHub's REST API.
-
Constructor Details
-
SubmitToGitHub
public SubmitToGitHub()
-
-
Method Details
-
createFile
Creates a file to be sent through a PUT request to GitHub's REST API.- Parameters:
filename
- The name of the ontology file to upload.- Returns:
- The body of the response sent by the server.
- Throws:
IOException
- If an I/O error occurs when sending or receiving.InterruptedException
- If the operation is interrupted.
-