Package uk.org.ogsadai.activity

Examples of uk.org.ogsadai.activity.ActivityProcessingException


              mOutput.write(xml.toCharArray());

             
          }
          catch (ClassCastException e) {
            throw new ActivityProcessingException(e);
          }
          catch (PipeClosedException e)
          {
              iterativeStageComplete();
          }
          catch (PipeIOException e)
          {
              throw new ActivityProcessingException(e);
          }
          catch (PipeTerminatedException e)
          {
              throw new ActivityTerminatedException();
          }
View Full Code Here


      {
          return reader.read();
      }
      catch (PipeIOException e)
      {
          throw new ActivityProcessingException(e);
      }
      catch (PipeTerminatedException e)
      {
          throw new ActivityTerminatedException();
      }
View Full Code Here

        {
            iterativeStageComplete();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

        {
            iterativeStageComplete();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

        {
            return reader.read();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

        {
            iterativeStageComplete();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

            }
            mOutput.write(ControlBlock.LIST_END);
        }
        catch (IOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeClosedException e)
        {
            iterativeStageComplete();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

                output.write(out[i++]);
            }
        }
        catch (IOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeClosedException e)
        {
            iterativeStageComplete();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

            {
                outputFile = File.createTempFile("ogsadai-", null);
            }
            catch (IOException e)
            {
                throw new ActivityProcessingException(e);
            }
        }
        else
        {
            outputFile = new File(filename);
        }
        InputStream input = null;
        OutputStream output = null;
        try
        {
            input = (InputStream) iterationData[1];
            output = new FileOutputStream(outputFile);
            IOUtilities.streamData(input, output);
        }
        catch (IOException e)
        {
            throw new ActivityProcessingException(e);
        }
        finally
        {
            try
            {
                if (input != null) input.close();
                if (output != null) output.close();
            }
            catch (IOException e)
            {
                LOG.warn(e);
            }
        }
        try
        {
            mOutput.write(outputFile.getAbsolutePath());
        }
        catch (PipeClosedException e)
        {
            iterativeStageComplete();
        }
        catch (PipeIOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (PipeTerminatedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

        p.waitFor();
        LOG.debug("Finished executing process.");
        }
        catch (IOException e)
        {
            throw new ActivityProcessingException(e);
        }
        catch (InterruptedException e)
        {
            throw new ActivityTerminatedException();
        }
View Full Code Here

TOP

Related Classes of uk.org.ogsadai.activity.ActivityProcessingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.