Package tvbrowserdataservice.file

Examples of tvbrowserdataservice.file.ChannelList.readFromStream()


     
      String channelFileName = mGroup+"_channellist.gz";
      try {
        data = mSource.loadFile(channelFileName);
        channelList = new ChannelList(mGroup);
        channelList.readFromStream(new ByteArrayInputStream(data), null);
      } catch (Exception e) {
          printError("Could not load channel file '"+channelFileName+"' for group '"+groupId+"'");
      }
     
      try {
View Full Code Here


  private ChannelList loadChannelListTxt(String fileName) throws PreparationException {
    ChannelList result = new ChannelList((ChannelGroup)null);

    File fromFile = new File(mConfigDir, fileName);
    try {
      result.readFromStream(new FileInputStream(fromFile), null, false);
    } catch (IOException e) {
      throw new PreparationException("Loading "+fileName+" failed", e);
    } catch (FileFormatException e) {
      throw new PreparationException("Loading "+fileName+" failed", e);
    }
View Full Code Here

    Channel[] channelArr;
    try {
      ByteArrayInputStream stream = new ByteArrayInputStream(data);
     
      ChannelList list = new ChannelList(groupname);
      list.readFromStream(stream, null);
      channelArr = list.createChannelArray();
    }
    catch (Exception exc) {
      throw new UpdateException("Reading channel list for group "+groupname+" failed", exc);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.