001/* 002MIT License 003 004Copyright (c) 2020 FBSQL Team 005 006Permission is hereby granted, free of charge, to any person obtaining a copy 007of this software and associated documentation files (the "Software"), to deal 008in the Software without restriction, including without limitation the rights 009to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 010copies of the Software, and to permit persons to whom the Software is 011furnished to do so, subject to the following conditions: 012 013The above copyright notice and this permission notice shall be included in all 014copies or substantial portions of the Software. 015 016THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 017IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 018FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 019AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 020LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 021OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 022SOFTWARE. 023 024Home: https://fbsql.github.io 025E-Mail: fbsql.team@gmail.com 026*/ 027 028package org.fbsql.servlet; 029 030import java.util.zip.Deflater; 031 032/** 033 * Results compression level (0 - no compression, 1 - best speed, 9 - best compression) 034 */ 035public interface CompressionLevel { 036 037 /** 038 * Compression level for no compression. 039 */ 040 int NO_COMPRESSION = Deflater.NO_COMPRESSION; // 0: no compression 041 042 /** 043 * Compression level for fastest compression. 044 */ 045 int BEST_SPEED = Deflater.BEST_SPEED; // 1: best speed strategy 046 047 /** 048 * Compression level for best compression. 049 */ 050 int BEST_COMPRESSION = Deflater.BEST_COMPRESSION; // 9: best compression strategy (default) 051 052} 053 054/* 055Please contact FBSQL Team by E-Mail fbsql.team@gmail.com 056or visit https://fbsql.github.io if you need additional 057information or have any questions. 058*/ 059 060/* EOF */