OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of "io.dart"; | 5 part of "dart:io"; |
6 | 6 |
7 /** | 7 /** |
8 * Exposes ZLib options for input parameters. | 8 * Exposes ZLib options for input parameters. |
9 * | 9 * |
10 * See http://www.zlib.net/manual.html for more documentation. | 10 * See http://www.zlib.net/manual.html for more documentation. |
11 */ | 11 */ |
12 abstract class ZLibOption { | 12 abstract class ZLibOption { |
13 /// Minimal value for [ZLibCodec.windowBits], [ZLibEncoder.windowBits] | 13 /// Minimal value for [ZLibCodec.windowBits], [ZLibEncoder.windowBits] |
14 /// and [ZLibDecoder.windowBits]. | 14 /// and [ZLibDecoder.windowBits]. |
15 static const int MIN_WINDOW_BITS = 8; | 15 static const int MIN_WINDOW_BITS = 8; |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 ZLibOption.STRATEGY_FILTERED, | 603 ZLibOption.STRATEGY_FILTERED, |
604 ZLibOption.STRATEGY_HUFFMAN_ONLY, | 604 ZLibOption.STRATEGY_HUFFMAN_ONLY, |
605 ZLibOption.STRATEGY_RLE, | 605 ZLibOption.STRATEGY_RLE, |
606 ZLibOption.STRATEGY_FIXED, | 606 ZLibOption.STRATEGY_FIXED, |
607 ZLibOption.STRATEGY_DEFAULT | 607 ZLibOption.STRATEGY_DEFAULT |
608 ]; | 608 ]; |
609 if (strategies.indexOf(strategy) == -1) { | 609 if (strategies.indexOf(strategy) == -1) { |
610 throw new ArgumentError("Unsupported 'strategy'"); | 610 throw new ArgumentError("Unsupported 'strategy'"); |
611 } | 611 } |
612 } | 612 } |
OLD | NEW |