Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 73 for readBytes (0.08 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CommandExtractor.java

                // store to a file
                CopyUtil.copy(in, inputFile);
    
                executeCommand(inputFile, outputFile);
    
                final ExtractData extractData = new ExtractData(new String(FileUtil.readBytes(outputFile), outputEncoding));
                if (StringUtil.isNotBlank(resourceName)) {
                    extractData.putValues("resourceName", new String[] { resourceName });
                }
    
                return extractData;
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. internal/s3select/csv/reader.go

    			// ReadFull returns ErrUnexpectedEOF.
    			return dst[:n], err
    		}
    		dst = dst[:n]
    		if err == io.ErrUnexpectedEOF {
    			return dst, io.EOF
    		}
    	}
    	// Read until next line.
    	in, err := r.buf.ReadBytes('\n')
    	dst = append(dst, in...)
    	return dst, err
    }
    
    // csvSplitSize is the size of each block.
    // Blocks will read this much and find the first following newline.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/FileUtil.java

            }
        }
    
        /**
         * ファイルの内容をバイト配列に読み込んで返します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
         * @return ファイルの内容を読み込んだバイト配列
         */
        public static byte[] readBytes(final File file) {
            assertArgumentNotNull("file", file);
    
            final FileInputStream is = InputStreamUtil.create(file);
            try {
                final FileChannel channel = is.getChannel();
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. cmd/xl-storage-format-v2_gen.go

    	s = msgp.Uint8Size
    	return
    }
    
    // DecodeMsg implements msgp.Decodable
    func (z *xlMetaBuf) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 []byte
    		zb0001, err = dc.ReadBytes([]byte((*z)))
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = xlMetaBuf(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 55.5K bytes
    - Viewed (0)
  5. cmd/storage-datatypes_gen.go

    		return
    	}
    	if dc.IsNil() {
    		err = dc.ReadNil()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		z.Data = nil
    	} else {
    		z.Data, err = dc.ReadBytes(z.Data)
    		if err != nil {
    			err = msgp.WrapError(err, "Data")
    			return
    		}
    		if z.Data == nil {
    			z.Data = make([]byte, 0)
    		}
    	}
    	z.NumVersions, err = dc.ReadInt()
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 150.2K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    				MetricV2{
    					Description: getMinIOProcessSysCallWMD(),
    					Value:       float64(io.SyscW),
    				})
    		}
    
    		if io.ReadBytes > 0 {
    			metrics = append(metrics,
    				MetricV2{
    					Description: getMinioProcessIOReadBytesMD(),
    					Value:       float64(io.ReadBytes),
    				})
    		}
    
    		if io.WriteBytes > 0 {
    			metrics = append(metrics,
    				MetricV2{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v1_gen.go

    				zb0002, err = dc.ReadUint()
    				if err != nil {
    					err = msgp.WrapError(err, "Algorithm")
    					return
    				}
    				z.Algorithm = BitrotAlgorithm(zb0002)
    			}
    		case "Hash":
    			z.Hash, err = dc.ReadBytes(z.Hash)
    			if err != nil {
    				err = msgp.WrapError(err, "Hash")
    				return
    			}
    		default:
    			err = dc.Skip()
    			if err != nil {
    				err = msgp.WrapError(err)
    				return
    			}
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  8. internal/grid/msg_gen.go

    	}
    	{
    		var zb0004 uint8
    		zb0004, err = dc.ReadUint8()
    		if err != nil {
    			err = msgp.WrapError(err, "Flags")
    			return
    		}
    		z.Flags = Flags(zb0004)
    	}
    	z.Payload, err = dc.ReadBytes(z.Payload)
    	if err != nil {
    		err = msgp.WrapError(err, "Payload")
    		return
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z *message) EncodeMsg(en *msgp.Writer) (err error) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jul 25 21:07:21 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteSource.java

        checkNotNull(processor);
    
        Closer closer = Closer.create();
        try {
          InputStream in = closer.register(openStream());
          return ByteStreams.readBytes(in, processor);
        } catch (Throwable e) {
          throw closer.rethrow(e);
        } finally {
          closer.close();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readBoolean();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public byte readByte() {
          try {
            return input.readByte();
          } catch (EOFException e) {
            throw new IllegalStateException(e);
          } catch (IOException impossible) {
            throw new AssertionError(impossible);
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top