com.sun.nio.sctp.InvalidStreamException Java Examples

The following examples show how to use com.sun.nio.sctp.InvalidStreamException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GitRepository.java    From git-as-svn with GNU General Public License v2.0 6 votes vote down vote up
@NotNull
GitFilter getFilter(@NotNull FileMode fileMode, @NotNull GitProperty[] props) {
  if (fileMode.getObjectType() != Constants.OBJ_BLOB)
    return gitFilters.raw;

  if (fileMode == FileMode.SYMLINK)
    return gitFilters.link;

  for (int i = props.length - 1; i >= 0; --i) {
    final String filterName = props[i].getFilterName();
    if (filterName == null)
      continue;

    final GitFilter filter = gitFilters.get(filterName);
    if (filter == null)
      throw new InvalidStreamException("Unknown filter requested: " + filterName);

    return filter;
  }
  return gitFilters.raw;
}
 
Example #2
Source File: SctpChannelImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #3
Source File: SctpChannelImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #4
Source File: SctpChannelImpl.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #5
Source File: SctpChannelImpl.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #6
Source File: SctpChannelImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #7
Source File: SctpChannelImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #8
Source File: SctpChannelImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #9
Source File: SctpChannelImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #10
Source File: SctpChannelImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #11
Source File: SctpChannelImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #12
Source File: SctpChannelImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #13
Source File: SctpChannelImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #14
Source File: SctpChannelImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void checkStreamNumber(int streamNumber) {
    synchronized (stateLock) {
        if (association != null) {
            if (streamNumber < 0 ||
                  streamNumber >= association.maxOutboundStreams())
                throw new InvalidStreamException();
        }
    }
}
 
Example #15
Source File: SctpMultiChannelImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #16
Source File: SctpMultiChannelImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #17
Source File: SctpMultiChannelImpl.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #18
Source File: SctpMultiChannelImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #19
Source File: SctpMultiChannelImpl.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #20
Source File: SctpMultiChannelImpl.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #21
Source File: SctpMultiChannelImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #22
Source File: SctpMultiChannelImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #23
Source File: SctpMultiChannelImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #24
Source File: SctpMultiChannelImpl.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #25
Source File: SctpMultiChannelImpl.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #26
Source File: SctpMultiChannelImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}
 
Example #27
Source File: SctpMultiChannelImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
private void checkStreamNumber(Association assoc, int streamNumber) {
    synchronized (stateLock) {
        if (streamNumber < 0 || streamNumber >= assoc.maxOutboundStreams())
            throw new InvalidStreamException();
    }
}