Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 216 for Stream (0.15 sec)

  1. internal/grid/stream.go

    	// If the request context is canceled, the stream will no longer process requests.
    	// Requests sent cannot be used any further by the called.
    	Requests chan<- []byte
    
    	muxID uint64
    	ctx   context.Context
    }
    
    // Send a payload to the remote server.
    func (s *Stream) Send(b []byte) error {
    	if s.Requests == nil {
    		return errors.New("stream does not accept requests")
    	}
    	select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 18:05:18 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. docs/debugging/inspect/decrypt-v2.go

    				}
    				if err := stream.Skip(); err != nil {
    					return fmt.Errorf("stream skip: %w", err)
    				}
    				continue
    			}
    			if extracted {
    				return keepFileErr{fmt.Errorf("next stream: %w", err)}
    			}
    			return fmt.Errorf("next stream: %w", err)
    		}
    		if stream.Name == "inspect.zip" {
    			if extracted {
    				return keepFileErr{errors.New("multiple inspect.zip streams found")}
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/stream/StreamUtil.java

        }
    
        public static class StreamOf<T> {
    
            private final Supplier<Stream<T>> supplier;
    
            public StreamOf(final Supplier<Stream<T>> supplier) {
                this.supplier = supplier;
            }
    
            public void of(final Consumer<Stream<T>> stream) {
                try (Stream<T> s = supplier.get()) {
                    stream.accept(s);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MoreCollectors.java

      /**
       * A collector that converts a stream of zero or one elements to an {@code Optional}.
       *
       * @throws IllegalArgumentException if the stream consists of two or more elements.
       * @throws NullPointerException if any element in the stream is {@code null}.
       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/ExtensibleEnumRegistries.java

            protected final Map<String, T> values;
    
            DefaultExtensibleEnumRegistry(List<P> providers, T... builtinValues) {
                values = Stream.<T>concat(
                                Stream.of(builtinValues), providers.stream().flatMap(p -> p.provides().stream()))
                        .collect(Collectors.toUnmodifiableMap(t -> t.id().toLowerCase(Locale.ROOT), t -> t));
            }
    
            @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public boolean hasRole(final String role) {
            return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role)));
        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
            return stream(user.getRoleNames())
                    .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1)))));
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/login/SamlCredential.java

                    permissionSet.add(systemHelper.getSearchRoleByUser(nameId));
                    stream(groups).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByGroup(s))));
                    stream(roles).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByRole(s))));
                    permissions = permissionSet.toArray(new String[permissionSet.size()]);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/webconfig/ApiAdminWebconfigAction.java

            body.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s))
                    .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n")));
            body.virtualHosts = stream(entity.getVirtualHosts())
                    .get(stream -> stream.filter(StringUtil::isNotBlank).distinct().map(String::trim).collect(Collectors.joining("\n")));
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/UpgradePropertiesRuleSetup.java

    import java.util.AbstractMap;
    import java.util.HashSet;
    import java.util.List;
    import java.util.Map;
    import java.util.function.Function;
    import java.util.stream.Collectors;
    import java.util.stream.Stream;
    
    import static gradlebuild.binarycompatibility.upgrades.UpgradedProperties.CURRENT_ACCESSORS_OF_UPGRADED_PROPERTIES;
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/entity/SearchRequestParams.java

            if (values == null || values.length == 0) {
                return true;
            }
            return stream(values).get(stream -> stream.allMatch(StringUtil::isBlank));
        }
    
        protected static String[] simplifyArray(final String[] values) {
            return stream(values).get(stream -> stream.filter(StringUtil::isNotBlank).distinct().toArray(n -> new String[n]));
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top