2 * Copyright (c) 2019-2020. Developed by Hedgecode.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.hedgecode.chess.scanner;
19 import java.nio.charset.Charset;
20 import java.nio.charset.StandardCharsets;
23 * Store of ChessHogScanner constants.
25 * @author Dmitry Samoshin aka gotty
27 public final class ChessHogScannerConstants {
29 public static final Charset CHARSET = StandardCharsets.UTF_8;
31 public static final String CRLF = System.getProperty("line.separator");
33 public static final String TYPE_CHESSGAMES = "chessgames";
34 public static final String TYPE_LICHESS = "lichess";
35 public static final String TYPE_CHESSBOMB = "chessbomb";
36 public static final String TYPE_CHESS24 = "chess24";
37 public static final String TYPE_CHESSCOM = "chesscom";
39 public static final String DOMAIN_CHESSGAMES = "chessgames.com";
40 public static final String DOMAIN_LICHESS = "lichess.org";
41 public static final String DOMAIN_CHESSBOMB = "www.chessbomb.com";
42 public static final String DOMAIN_CHESS24 = "chess24.com";
43 public static final String DOMAIN_CHESSCOM = "chess.com";
45 public static final String PROXY_UNDEFINED = "undefined";
46 public static final String PROXY_HTTP = "http";
47 public static final String PROXY_SOCKS = "socks";
49 private ChessHogScannerConstants() {
50 throw new AssertionError(
51 String.format("No %s instances!", getClass().getName())