public class DocumentUtil extends Object
Constructor and Description |
---|
DocumentUtil() |
Modifier and Type | Method and Description |
---|---|
String |
getDocumentWithoutComments(URL fileUrl)
Returns the content of the file minus the comments as String.
|
ProblemType |
getProblemType(String docType)
Returns the enum ProblemType based on the docType.
|
String |
readFile(URL fileUrl)
Read the content of the file and returns the content of the file as String.
|
public ProblemType getProblemType(String docType)
docType
- The string represent the document type.public String readFile(URL fileUrl)
fileUrl
- The URL of the file.Copyright © 2023 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.