Package land.oras
Class Subject
java.lang.Object
land.oras.Subject
Class for subject
-
Method Details
-
getMediaType
Get the media type- Returns:
- The media type
-
getDigest
Get the digest- Returns:
- The digest
-
getSize
public long getSize()Get the size- Returns:
- The size
-
toJson
Return the JSON representation of the manifest- Returns:
- The JSON string
-
of
Create a subject- Parameters:
mediaType
- The media typedigest
- The digestsize
- The size- Returns:
- The subject
-
fromJson
Create a subject from a JSON string- Parameters:
json
- The JSON string- Returns:
- The subject
-