Class FileCreateHandle

java.lang.Object
nz.org.riskscape.engine.resource.CreateHandle
nz.org.riskscape.engine.resource.FileCreateHandle

public class FileCreateHandle extends nz.org.riskscape.engine.resource.CreateHandle
  • Nested Class Summary

    Nested classes/interfaces inherited from class nz.org.riskscape.engine.resource.CreateHandle

    nz.org.riskscape.engine.resource.CreateHandle.Callback
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileCreateHandle(nz.org.riskscape.engine.resource.CreateRequest request, File writeTo)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    store(nz.org.riskscape.engine.resource.CreateHandle.Callback callback)
     

    Methods inherited from class nz.org.riskscape.engine.resource.CreateHandle

    canEqual, equals, getRequest, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FileCreateHandle

      public FileCreateHandle(nz.org.riskscape.engine.resource.CreateRequest request, File writeTo)
  • Method Details

    • store

      public URI store(nz.org.riskscape.engine.resource.CreateHandle.Callback callback) throws nz.org.riskscape.engine.resource.CreateException
      Overrides:
      store in class nz.org.riskscape.engine.resource.CreateHandle
      Throws:
      nz.org.riskscape.engine.resource.CreateException
    • store

      public URI store() throws nz.org.riskscape.engine.resource.CreateException
      Specified by:
      store in class nz.org.riskscape.engine.resource.CreateHandle
      Throws:
      nz.org.riskscape.engine.resource.CreateException
    • getOutputStream

      public FileOutputStream getOutputStream()
      Specified by:
      getOutputStream in class nz.org.riskscape.engine.resource.CreateHandle