Package org.xadisk.additional

Examples of org.xadisk.additional.XAFileInputStreamWrapper


      assertSessionCreated();
      try
      {
         long fileLength = session.getFileLength(f);
         XAFileInputStream xaStream = session.createXAFileInputStream(f);
         XAFileInputStreamWrapper xaWrapper = new XAFileInputStreamWrapper(xaStream);
         return new AvailableInputStreamWrapper(xaWrapper, (int) fileLength);
      }
      catch (Exception e)
      {
         throw new ResourceTransactionException(e);
View Full Code Here


      assertSessionCreated();
      try
      {
         long fileLength = session.getFileLength(f);
         XAFileInputStream xaStream = session.createXAFileInputStream(f);
         XAFileInputStreamWrapper xaWrapper = new XAFileInputStreamWrapper(xaStream);
         return new AvailableInputStreamWrapper(xaWrapper, (int) fileLength);
      }
      catch (Exception e)
      {
         throw new ResourceTransactionException(e);
View Full Code Here

   {
      assertSessionCreated();
      try
      {
         XAFileInputStream xaStream = session.createXAFileInputStream(f);
         return new XAFileInputStreamWrapper(xaStream);
      }
      catch (Exception e)
      {
         throw new ResourceTransactionException(e);
      }
View Full Code Here

      assertSessionCreated();
      try
      {
         long fileLength = session.getFileLength(f);
         XAFileInputStream xaStream = session.createXAFileInputStream(f);
         XAFileInputStreamWrapper xaWrapper = new XAFileInputStreamWrapper(xaStream);
         return new AvailableInputStreamWrapper(xaWrapper, (int) fileLength);
      }
      catch (Exception e)
      {
         throw new ResourceTransactionException(e);
View Full Code Here

      assertSessionCreated();
      try
      {
         long fileLength = session.getFileLength(f);
         XAFileInputStream xaStream = session.createXAFileInputStream(f);
         XAFileInputStreamWrapper xaWrapper = new XAFileInputStreamWrapper(xaStream);
         return new AvailableInputStreamWrapper(xaWrapper, (int) fileLength);
      }
      catch (Exception e)
      {
         throw new ResourceTransactionException(e);
View Full Code Here

      assertSessionCreated();
      try
      {
         long fileLength = session.getFileLength(f);
         XAFileInputStream xaStream = session.createXAFileInputStream(f);
         XAFileInputStreamWrapper xaWrapper = new XAFileInputStreamWrapper(xaStream);
         return new AvailableInputStreamWrapper(xaWrapper, (int) fileLength);
      }
      catch (Exception e)
      {
         throw new ResourceTransactionException("Error while creating input stream for " + f, e);
View Full Code Here

TOP

Related Classes of org.xadisk.additional.XAFileInputStreamWrapper

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.