野子电竞数据官网改版[https://www.xxe.io/](https://www.xxe.io/)全新登场

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.ByteArrayInputStream;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

@Website: https://www.xxe.io/
*/
public class BasketballPlayerInfo {
public static void main(String[] args) {
try {
String content = getContent();

   
    String content = fetchString("http://test.win007.com/lq/LqOdds.aspx");
    MixString partMix = new MixString(content, "$");
    MixString rfMix = new MixString(partMix[2], ";");
    MixString opMix = new MixString(partMix[3], ";");
    MixString dxMix = new MixString(partMix[4], ";");

    return new BasketballFullOdds(
        rfMix.list.stream().map( it -> {
            MixString oddsMix = new MixString(it);
            return new BasketballYpOdds(
                oddsMix[0],
                oddsMix[1],
                oddsMix[2],
                oddsMix[3],
                oddsMix[4],
                oddsMix[5],
                oddsMix[6],
                oddsMix[7],
                oddsMix[8],
                oddsMix[9],
                oddsMix[10]
            );
        }).collect(Collectors.toList()),
        opMix.list.stream().map( it -> {
            MixString oddsMix = new MixString(it)
            return new BasketballOpOdds(
                oddsMix[0],
                oddsMix[1],
                oddsMix[2],
                oddsMix[3],
                oddsMix[4],
                oddsMix[5]
            );
        }).collect(Collectors.toList()),
        dxMix.list.stream().map( it -> {
            MixString oddsMix = new MixString(it)
            return new BasketballDxOdds(
                oddsMix[0],
                oddsMix[1],
                oddsMix[2],
                oddsMix[3],
                oddsMix[4],
                oddsMix[5],
                oddsMix[6],
                oddsMix[7],
                oddsMix[8],
                oddsMix[9],
                oddsMix[10]
            );
        }).collect(Collectors.toList())
    );
}

待你幼稚完
9 声望2 粉丝