public class PackageJsonUtil
extends java.lang.Object
| Constructor and Description |
|---|
PackageJsonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static PackageJson |
readPackageJsonFromFile(java.lang.String fileLocation)
Reads a package.json file at the specified location and returns a PackageJson object
representing the package.json attributes and values.
|
static PackageJson |
readPackageJsonFromIFile(IFile file)
Reads a package.json file specified in the IFile and returns a PackageJson object
representing the package.json attributes and values.
|
static PackageJson |
readPackageJsonFromIResource(IResource resource)
Reads a package.json contained in the IResource given and returns a PackageJson object
representing the package.json attributes and values.
|
public static PackageJson readPackageJsonFromFile(java.lang.String fileLocation) throws java.io.FileNotFoundException
fileLocation - Absolute path of the package.json filejava.io.FileNotFoundExceptionpublic static PackageJson readPackageJsonFromIFile(IFile file) throws java.io.FileNotFoundException
file - containing the package.json filejava.io.FileNotFoundExceptionpublic static PackageJson readPackageJsonFromIResource(IResource resource)
resource - IResource containing a package.json fileCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.