Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getLength (0.18 sec)

  1. cmd/httprange.go

    type HTTPRangeSpec struct {
    	// Does the range spec refer to a suffix of the object?
    	IsSuffixLength bool
    
    	// Start and end offset specified in range spec
    	Start, End int64
    }
    
    // GetLength - get length of range
    func (h *HTTPRangeSpec) GetLength(resourceSize int64) (rangeLength int64, err error) {
    	switch {
    	case resourceSize < 0:
    		return 0, errors.New("Resource size cannot be negative")
    
    	case h == nil:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomAttributePointer.java

        @Override
        public Object getBaseValue() {
            return attrib;
        }
    
        @Override
        public Object getImmediateNode() {
            return attrib;
        }
    
        @Override
        public int getLength() {
            return 1;
        }
    
        @Override
        public QName getName() {
            return new QName(null, attrib.getKey());
        }
    
        @Override
        public boolean isActual() {
            return true;
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  3. maven-core/src/main/java/org/apache/maven/plugin/DebugConfigurationListener.java

         * @return The string representation, never <code>null</code>.
         */
        private String toString(Object obj) {
            String str;
            if (obj != null && obj.getClass().isArray()) {
                int n = Array.getLength(obj);
                StringBuilder buf = new StringBuilder(256);
                buf.append('[');
                for (int i = 0; i < n; i++) {
                    if (i > 0) {
                        buf.append(", ");
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  4. maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodePointer.java

        @Override
        public Object getBaseValue() {
            return node;
        }
    
        @Override
        public Object getImmediateNode() {
            return node;
        }
    
        @Override
        public int getLength() {
            return 1;
        }
    
        @Override
        public QName getName() {
            return new QName(null, node.getName());
        }
    
        @Override
        public boolean isCollection() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Wed Sep 06 08:39:32 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/ds/DataStoreFactory.java

                        final Document doc = builder.parse(is);
                        final NodeList nodeList = doc.getElementsByTagName("component");
                        for (int i = 0; i < nodeList.getLength(); i++) {
                            final Node node = nodeList.item(i);
                            final NamedNodeMap attributes = node.getAttributes();
                            if (attributes != null) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/internal/MultilineMessageHelper.java

            List<String> result = new ArrayList<>();
            StringBuilder sb = new StringBuilder(size);
            // first line
            sb.setLength(0);
            repeat(sb, BOX_CHAR, size);
            result.add(sb.toString());
            // lines
            for (String line : lines) {
                sb.setLength(0);
                String[] words = S_FILTER.split(line);
                for (String word : words) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Feb 07 20:55:12 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultMessageBuilder.java

            return this;
        }
    
        @Override
        public MessageBuilder append(char c) {
            buffer.append(c);
            return this;
        }
    
        @Override
        public MessageBuilder setLength(int length) {
            buffer.setLength(length);
            return this;
        }
    
        @Override
        @Nonnull
        public String build() {
            return buffer.toString();
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Mon Jan 08 10:37:09 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultMessageBuilder.java

            return this;
        }
    
        @Override
        public MessageBuilder append(char c) {
            buffer.append(c);
            return this;
        }
    
        @Override
        public MessageBuilder setLength(int length) {
            buffer.setLength(length);
            return this;
        }
    
        @Override
        @Nonnull
        public String build() {
            return buffer.toString();
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/exception/ConstructorNotFoundRuntimeException.java

                if (arg != null) {
                    buf.append(arg.getClass().getName());
                } else {
                    buf.append("null");
                }
                buf.append(", ");
            }
            buf.setLength(buf.length() - 2);
            return new String(buf);
        }
    
        private static String getSignature(final Class<?>... paramTypes) {
            if (paramTypes == null || paramTypes.length == 0) {
                return "";
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/exception/SQLRuntimeException.java

            }
            Throwable t = cause.getCause();
            while (t != null) {
                buf.append(t.getMessage()).append("], [");
                t = t.getCause();
            }
            buf.setLength(buf.length() - 4);
            return new String(buf);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top