code: public static boolean anyPositionsNonZero(WsByteBuffer buffers[]) {
          if (buffers != null) {
              // Loop through all buffers in the array.
              for (int i = 0; i < buffers.length; i++) {
                  // Verify buffer is non null and check for nonzero position
                  if ((buffers[i] != null) && (buffers[i].position() != 0)) {
                      // Found a nonzero position.
                      return true;
                  }
              }
          }
          // If we get this far, all positions were zero
          return false;
      }
docs: Search for any buffer in the array that has a position that isn't zero.
  If found, return true, otherwise false.
  
  @param buffers
  @return boolean