Class PreviewParser

java.lang.Object
com.amilesend.onedrive.parse.resource.parser.PreviewParser
All Implemented Interfaces:
GsonParser<Preview>

public class PreviewParser extends Object implements GsonParser<Preview>
Parses a response body that contains a Preview.
See Also:
  • Constructor Details

    • PreviewParser

      public PreviewParser(String driveItemId)
  • Method Details

    • parse

      public Preview parse(com.google.gson.Gson gson, InputStream jsonStream)
      Description copied from interface: GsonParser
      Deserializes a JSON-formatted input stream to the defined POJO type.
      Specified by:
      parse in interface GsonParser<Preview>
      Parameters:
      gson - the Gson instance used to deserialize the string
      jsonStream - stream with expected JSON-formatted contents
      Returns:
      the parsed POJO instance