ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/coyote/InputBuffer.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/coyote/InputBuffer.java
Status
scanned
Type
file
Name
InputBuffer.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2040 (2.0 KB)
MD5
79a47b6a57f48ef69ec396d69a802782
SHA1
e1fed1dd564e57c3f1cd0b085a50e5061aec7e36
SHA256
0ceb672ed2eab15e6ea9557c5dd0db5122f68902742ee6a78a1a3b8ae14d56c7
SHA512

      
    
SHA1_git
37b1c4aeab6d6e5468657b534c04964494242c38
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
InputBuffer.java | 2.0 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.coyote; import java.io.IOException; import org.apache.tomcat.util.net.ApplicationBufferHandler; /** * This class is only for internal use in the protocol implementation. All reading from Tomcat (or adapter) should be * done using Request.doRead(). */ public interface InputBuffer { /** * Read from the input stream into the ByteBuffer provided by the ApplicationBufferHandler. IMPORTANT: the current * model assumes that the protocol will 'own' the ByteBuffer and return a pointer to it. * * @param handler ApplicationBufferHandler that provides the buffer to read data into. * * @return The number of bytes that have been added to the buffer or -1 for end of stream * * @throws IOException If an I/O error occurs reading from the input stream */ int doRead(ApplicationBufferHandler handler) throws IOException; /** * Obtain an estimate of the number of bytes that can be read without blocking. Typically, this will be the number * of available bytes known to be buffered. * * @return The number of bytes that can be read without blocking */ int available(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
43.12
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9