Tabnine Logo
BoundaryDelimitedStream.finalClose
Code IndexAdd Tabnine to your IDE (free)

How to use
finalClose
method
in
org.apache.axis.attachments.BoundaryDelimitedStream

Best Java code snippets using org.apache.axis.attachments.BoundaryDelimitedStream.finalClose (Showing top 6 results out of 315)

origin: org.apache.axis/axis

/**
 * Read from the boundary delimited stream.
 *
 * @param searchbuf buffer to read from
 * @param start     starting index
 * @param end       ending index
 * @return The position of the boundary. Detects the end of the source stream.
 * @throws java.io.IOException if there was an error manipulating the
 *              underlying stream
 */
protected int boundaryPosition(byte[] searchbuf, int start, int end) throws java.io.IOException  {
  int foundAt = boundarySearch(searchbuf, start, end);
  // First find the boundary marker
  if (BOUNDARY_NOT_FOUND != foundAt) {    // Something was found.
    if (foundAt + boundaryLen + 2 > end) {
      foundAt = BOUNDARY_NOT_FOUND;
    } else {
      // If the marker has a "--" at the end then this is the last boundary.
      if ((searchbuf[foundAt + boundaryLen] == '-')
          && (searchbuf[foundAt + boundaryLen + 1] == '-')) {
        finalClose();
      } else if ((searchbuf[foundAt + boundaryLen] != 13)
          || (searchbuf[foundAt + boundaryLen + 1] != 10)) {
        // If there really was no crlf at then end then this is not a boundary.
        foundAt = BOUNDARY_NOT_FOUND;
      }
    }
  }
  return foundAt;
}
origin: axis/axis

/**
 * Read from the boundary delimited stream.
 *
 * @param searchbuf buffer to read from
 * @param start     starting index
 * @param end       ending index
 * @return The position of the boundary. Detects the end of the source stream.
 * @throws java.io.IOException if there was an error manipulating the
 *              underlying stream
 */
protected int boundaryPosition(byte[] searchbuf, int start, int end) throws java.io.IOException  {
  int foundAt = boundarySearch(searchbuf, start, end);
  // First find the boundary marker
  if (BOUNDARY_NOT_FOUND != foundAt) {    // Something was found.
    if (foundAt + boundaryLen + 2 > end) {
      foundAt = BOUNDARY_NOT_FOUND;
    } else {
      // If the marker has a "--" at the end then this is the last boundary.
      if ((searchbuf[foundAt + boundaryLen] == '-')
          && (searchbuf[foundAt + boundaryLen + 1] == '-')) {
        finalClose();
      } else if ((searchbuf[foundAt + boundaryLen] != 13)
          || (searchbuf[foundAt + boundaryLen + 1] != 10)) {
        // If there really was no crlf at then end then this is not a boundary.
        foundAt = BOUNDARY_NOT_FOUND;
      }
    }
  }
  return foundAt;
}
origin: org.apache.axis/com.springsource.org.apache.axis

/**
 * Read from the boundary delimited stream.
 *
 * @param searchbuf buffer to read from
 * @param start     starting index
 * @param end       ending index
 * @return The position of the boundary. Detects the end of the source stream.
 * @throws java.io.IOException if there was an error manipulating the
 *              underlying stream
 */
protected int boundaryPosition(byte[] searchbuf, int start, int end) throws java.io.IOException  {
  int foundAt = boundarySearch(searchbuf, start, end);
  // First find the boundary marker
  if (BOUNDARY_NOT_FOUND != foundAt) {    // Something was found.
    if (foundAt + boundaryLen + 2 > end) {
      foundAt = BOUNDARY_NOT_FOUND;
    } else {
      // If the marker has a "--" at the end then this is the last boundary.
      if ((searchbuf[foundAt + boundaryLen] == '-')
          && (searchbuf[foundAt + boundaryLen + 1] == '-')) {
        finalClose();
      } else if ((searchbuf[foundAt + boundaryLen] != 13)
          || (searchbuf[foundAt + boundaryLen + 1] != 10)) {
        // If there really was no crlf at then end then this is not a boundary.
        foundAt = BOUNDARY_NOT_FOUND;
      }
    }
  }
  return foundAt;
}
origin: axis/axis

readbuf = null;
closed = true;
finalClose();
  readbuf = null;
  closed = true;
  finalClose();
origin: org.apache.axis/axis

readbuf = null;
closed = true;
finalClose();
  readbuf = null;
  closed = true;
  finalClose();
origin: org.apache.axis/com.springsource.org.apache.axis

readbuf = null;
closed = true;
finalClose();
  readbuf = null;
  closed = true;
  finalClose();
org.apache.axis.attachmentsBoundaryDelimitedStreamfinalClose

Javadoc

Close the underlying stream and remove all references to it.

Popular methods of BoundaryDelimitedStream

  • <init>
    Constructor to create the next stream from the previous one.
  • boundaryPosition
    Read from the boundary delimited stream.
  • boundarySearch
  • getNextStream
    Gets the next stream. From the previous using new buffer reading size.
  • newStreamNo
    Signal that a new stream has been created.
  • read
    Read from the boundary delimited stream.
  • readFromStream

Popular in Java

  • Reactive rest calls using spring rest template
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Path (java.nio.file)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • BoxLayout (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now