ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/jakarta/websocket/Decoder.java

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

      
    
Rootfs path

      
    
Size
1904 (1.9 KB)
MD5
47cbd3d9b11985b49679477c40dbbed9
SHA1
4c930fab39da64709c2f35c5c4e565151faf0fbf
SHA256
1a3fdd8bf1158c587013e8b6abb1500ddcd4fe2df62f0afdfa9d24c86926c64c
SHA512

      
    
SHA1_git
fd1950656206ceb90fae303503638dc35ceb78fa
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Decoder.java | 1.9 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 jakarta.websocket; import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.nio.ByteBuffer; public interface Decoder { /** * Initialise the decoder. The default implementation is a NO-OP. * * @param endpointConfig The end-point configuration */ default void init(EndpointConfig endpointConfig) { } /** * Destroy the decoder. The default implementation is a NO-OP. */ default void destroy() { } interface Binary<T> extends Decoder { T decode(ByteBuffer bytes) throws DecodeException; boolean willDecode(ByteBuffer bytes); } interface BinaryStream<T> extends Decoder { T decode(InputStream is) throws DecodeException, IOException; } interface Text<T> extends Decoder { T decode(String s) throws DecodeException; boolean willDecode(String s); } interface TextStream<T> extends Decoder { T decode(Reader reader) throws DecodeException, IOException; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
52.42
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