ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/ssi/ByteArrayServletOutputStream.java

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

      
    
Rootfs path

      
    
Size
2147 (2.1 KB)
MD5
b973c5b5b2b9d0fe7de5a3f697af3293
SHA1
d9177c0e8ebc0284007977815d287f33b185fb00
SHA256
c24410dcfda89f212bc5f73e34efc74e912244a668f258911416608a66e1f3c5
SHA512

      
    
SHA1_git
b3f78d37cefa22dd67872dda062a963d83eb9f4c
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ByteArrayServletOutputStream.java | 2.1 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.catalina.ssi; import java.io.ByteArrayOutputStream; import jakarta.servlet.ServletOutputStream; import jakarta.servlet.WriteListener; /** * Class that extends ServletOutputStream, used as a wrapper from within <code>SsiInclude</code> * * @see ServletOutputStream and ByteArrayOutputStream */ public class ByteArrayServletOutputStream extends ServletOutputStream { /** * Our buffer to hold the stream. */ protected final ByteArrayOutputStream buf; /** * Construct a new ServletOutputStream. */ public ByteArrayServletOutputStream() { buf = new ByteArrayOutputStream(); } /** * @return the byte array. */ public byte[] toByteArray() { return buf.toByteArray(); } /** * Write to our buffer. * * @param b The parameter to write */ @Override public void write(int b) { buf.write(b); } /** * TODO SERVLET 3.1 */ @Override public boolean isReady() { // TODO Auto-generated method stub return false; } /** * TODO SERVLET 3.1 */ @Override public void setWriteListener(WriteListener listener) { // TODO Auto-generated method stub } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
51.74
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