亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? channelfactory.java

?? JavaTV Program source code Need to play Windows Media files and streams, mpeg4 video or DVDs in j
?? JAVA
字號:
/* * Copyright (C) 2005 by Enrico Chiaretti - enrico.chiaretti@gmail.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* * ChannelFactory.java * * Created on 5 giugno 2005, 13.29 *//** this class creates / reads the channel list * @author enrico chiaretti */public class ChannelFactory{        private java.util.Vector mChannels = null;    private static int ST_INIT = -1;    private static int ST_READY = 0;    private static int ST_EOL = 1;    private static int ST_EOF = 2;    private int mstatus = -1;    /**     * Creates a new instance of ChannelFactory.     * the default constructor generates my favorites channels and frequencies.     * Moreover, it reads the user home directory, needed to save the channel list     * text file.     */    // creates the default channel list: PAL ITALY, Monte Nerone    public ChannelFactory()    {        mChannels = new java.util.Vector();        defaultChannels();    }        public ChannelFactory(java.util.Vector aChanList)    {        mChannels = aChanList;    }    /**     * Creates a new instance of ChannelFactory.     * reads the channels from file. If fails, create the default list     * @param TextFile this tells where to load / save the channel list text file, so the end user can     * edit at his own will.     */    public ChannelFactory(String TextFile)    {        mChannels = new java.util.Vector();        read(TextFile);    }        private void defaultChannels()    {        mChannels.clear();        mChannels.add(new TvChannel(1,   "Rai1", "E", "",    183750));        mChannels.add(new TvChannel(2,	"Rai2",	"33", "",   567250));        mChannels.add(new TvChannel(3,	"Rai3",	"54", "",   735250));        mChannels.add(new TvChannel(4,	"Rete4","34", "", 	575250));        mChannels.add(new TvChannel(5,	"Canale5", "39", "", 615250));        mChannels.add(new TvChannel(6,	"Italia1",	"50", "",	703250));        mChannels.add(new TvChannel(7,	"7Gold"	,"68", "Italia 7 Gold", 	847250));        mChannels.add(new TvChannel(8,	"La8",	"38", "", 607250));        mChannels.add(new TvChannel(9,	"TeleCentro", "60", "", 783250));        mChannels.add(new TvChannel(10, 	"TeleRomagna",	"49", "",	695250));        mChannels.add(new TvChannel(11,	"ITV",	"57", "", 759250));        mChannels.add(new TvChannel(12,	"MTV",	"28", "",	527250));        mChannels.add(new TvChannel(13,	"TeleSanterno",	"63", "",	807250));        mChannels.add(new TvChannel(14,	"SanMarino",	"H1", "",	217250));        mChannels.add(new TvChannel(15,	"SI",	"45", "",	663250));        mChannels.add(new TvChannel(16,	"Tele2000",	"29", "",	535250));        mChannels.add(new TvChannel(17,	"VCR",	"36", "Video Tape Recorder",	591250));    }            /** returns the active channel list to be displaied on the user form     * @return returns a Vector of TvChannel     */    public java.util.Vector getChannels()    {        // this is my default channel list, based on the italian frequencies        /*         * future release:         * read channel list from a text file.         * eventually, build a list editor form to add / change / remove channels         */        return mChannels;    }        /**     * this saves the channel list into a text file.     * @param FileName this tells where to save the channel list text file     */    public void save(String FileName) throws java.io.IOException    {        java.io.FileWriter OutFile = null;        TvChannel CurrChan = null;        String sFreq = null;        int i;                OutFile = new java.io.FileWriter(FileName);        for (i=0;i<mChannels.size();i++)        {            CurrChan = (TvChannel) mChannels.get(i);            if (CurrChan.freq.longValue() == 0)            {                sFreq = "";            }            else            {                sFreq = CurrChan.freq.toString();            }            OutFile.write(CurrChan.name + ", " + CurrChan.number + ", " + CurrChan.description + ", " + sFreq + ";\n");            System.out.println(CurrChan.index + ", " + CurrChan.name + ", " + CurrChan.number + ", " + CurrChan.description + ", " + sFreq);        }        OutFile.close();    }        /**     * this reads the channel list from the text file     * @param FileName this tells where to read the list from     */    public void read(String FileName)    {        java.io.FileReader InFile = null;        String ChanName = null;        String ChanDesc = null;        String ChanNum = null;        long chanFreq = 0;                mstatus = ST_INIT;        try        {            InFile = new java.io.FileReader(FileName);                        while(mstatus != ST_EOF)            {                ChanName = readWord(InFile); // required                ChanNum  = readWord(InFile); // required                                ChanDesc = readWord(InFile); // optional!!                if (mstatus == ST_EOL)                {                    // I just read frequency, not description!                    chanFreq = new Long(ChanDesc).longValue();                    ChanDesc = "";                }                else                {                    // now I can read frequency                    try                    {                        chanFreq = new Long(readWord(InFile)).longValue();                    }                    catch (Exception e) {};                }                                if (ChanName.length() > 0)                {                    mChannels.add(new TvChannel(mChannels.size() + 1, ChanName, ChanNum, ChanDesc, chanFreq));                }            }                        InFile.close();        }        catch (Exception e)        {            if (mChannels.size() == 0)            {                System.out.println("Error reading Channel List: not well formed!");                defaultChannels();            }        }            }        private String readWord(java.io.FileReader aInFile) throws java.io.IOException    {        StringBuffer Buf = new StringBuffer();        int i = -1;        char c = ' ';                mstatus = ST_INIT;                while(aInFile.ready() && mstatus == ST_INIT)        {            i = aInFile.read();            switch (i)            {                case ',':                    mstatus = ST_READY;                    break;                case ';':                    mstatus = ST_EOL;                    break;                case -1:                    break; // End of file!                case '\t':                case '\n':                    // skip char                default:                    Buf.append((char) i);            }                                }                if (Buf.length() == 0 && i == -1)        {            mstatus = ST_EOF;        }                return Buf.toString().trim();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
911国产精品| 成人性生交大片免费看中文网站| 在线精品视频免费播放| 亚洲精品久久久蜜桃| 色香蕉成人二区免费| 亚洲人妖av一区二区| 欧美亚洲国产一区在线观看网站| 午夜一区二区三区视频| 日韩欧美成人午夜| 国产一区二区0| 国产精品无码永久免费888| 色综合久久九月婷婷色综合| 亚洲午夜久久久久久久久电影网| 88在线观看91蜜桃国自产| 精品一区二区三区蜜桃| 国产精品天天摸av网| 在线观看免费亚洲| 久久精品免费观看| 日韩一区在线播放| 欧美肥胖老妇做爰| 国产成人精品综合在线观看| 亚洲女与黑人做爰| 在线观看日韩国产| 一区二区三区.www| 丝袜亚洲另类欧美| 久久久久久夜精品精品免费| 99久久久免费精品国产一区二区| 一卡二卡三卡日韩欧美| 精品久久久久99| 99在线精品观看| 日韩vs国产vs欧美| 国产精品美女一区二区在线观看| 91福利社在线观看| 国产麻豆精品视频| 午夜精品一区二区三区电影天堂| www欧美成人18+| 欧美体内she精视频| 国产精品一区二区视频| 亚洲国产一区二区视频| 国产欧美视频一区二区| 51精品国自产在线| 91香蕉视频mp4| 黄页视频在线91| 亚洲综合一区二区| 国产精品久久久久久久久免费桃花 | 日韩精品在线网站| 色先锋aa成人| 成人一区二区在线观看| 美女视频网站黄色亚洲| 亚洲国产精品自拍| 亚洲免费三区一区二区| 欧美激情综合五月色丁香| 5月丁香婷婷综合| 欧洲日韩一区二区三区| 丁香激情综合五月| 国产一区二区三区视频在线播放| 香港成人在线视频| 亚洲综合成人网| 国产精品久久99| 国产日韩成人精品| 久久午夜电影网| 欧美成人猛片aaaaaaa| 在线成人免费视频| 欧美视频一区二区三区在线观看 | 国产suv精品一区二区883| 蜜桃久久久久久久| 奇米777欧美一区二区| 亚洲国产sm捆绑调教视频| 亚洲美女屁股眼交3| 国产精品伦理在线| 中文字幕亚洲不卡| 国产精品全国免费观看高清| 国产亚洲精品7777| 国产日韩综合av| 欧美激情中文字幕| 中文一区一区三区高中清不卡| 久久一区二区视频| 久久免费精品国产久精品久久久久| 欧美成人精品1314www| 日韩精品一区二区三区四区| 日韩美女视频在线| 欧美www视频| 久久亚区不卡日本| 国产欧美一区二区三区沐欲| 欧美国产亚洲另类动漫| 中文字幕精品三区| 亚洲精品ww久久久久久p站| 亚洲男人的天堂在线aⅴ视频| 亚洲蜜臀av乱码久久精品 | 久久嫩草精品久久久精品| 精品福利二区三区| 国产午夜亚洲精品不卡| 国产精品网站在线| 亚洲精品中文在线观看| 午夜伊人狠狠久久| 久久国产精品99精品国产| 韩国女主播一区二区三区| 国产成人自拍在线| av动漫一区二区| 欧美日韩国产片| 精品卡一卡二卡三卡四在线| 久久女同性恋中文字幕| 亚洲三级免费观看| 偷偷要91色婷婷| 国产精品99久久久久| 91在线码无精品| 91精品欧美综合在线观看最新| 欧美成人video| **欧美大码日韩| 日韩精品一区第一页| 国产精品77777| 在线观看免费成人| 337p粉嫩大胆噜噜噜噜噜91av| 欧美高清在线视频| 无码av免费一区二区三区试看| 激情五月婷婷综合网| 99精品在线免费| 91精品国产91久久久久久一区二区 | av综合在线播放| 欧美一区二区精品久久911| 国产精品拍天天在线| 日韩影院免费视频| 不卡欧美aaaaa| 精品少妇一区二区三区| 亚洲欧美国产高清| 国产精品一区二区黑丝| 在线观看免费亚洲| 中文字幕精品三区| 久久国产精品免费| 欧美日韩精品一区二区天天拍小说 | 国产精品久久久久久一区二区三区 | 欧美一区二区三区婷婷月色| 中文字幕欧美激情一区| 日本欧美加勒比视频| 91麻豆免费看| 欧美高清一级片在线观看| 日韩电影在线一区二区| 色综合久久久久综合体| 久久精品人人做| 免费看黄色91| 欧美挠脚心视频网站| 亚洲丝袜美腿综合| 成人一级视频在线观看| 日韩欧美一区中文| 午夜影视日本亚洲欧洲精品| 91亚洲国产成人精品一区二区三 | 日韩黄色片在线观看| 在线视频一区二区三区| 国产精品看片你懂得| 国产一区二区三区在线观看免费| 69堂亚洲精品首页| 亚洲成人手机在线| 欧美视频在线播放| 亚洲国产一区在线观看| 日本电影欧美片| 亚洲免费伊人电影| 91久久国产综合久久| 亚洲视频你懂的| 91一区二区在线| 亚洲视频资源在线| 99久久婷婷国产| 1000精品久久久久久久久| 成人动漫一区二区三区| 国产精品亲子乱子伦xxxx裸| 丰满岳乱妇一区二区三区| 国产三级精品视频| 成人av在线一区二区三区| 久久久99精品久久| 国产成人免费视| 国产精品免费免费| 91在线视频播放| 一区二区久久久| 欧美日韩国产一级| 男人操女人的视频在线观看欧美| 日韩亚洲欧美综合| 久久99国内精品| 国产日韩欧美麻豆| 不卡高清视频专区| 一区二区不卡在线视频 午夜欧美不卡在| 91日韩精品一区| 亚洲国产欧美日韩另类综合| 欧美精品1区2区| 精品综合久久久久久8888| 久久久不卡网国产精品一区| 成人涩涩免费视频| 亚洲婷婷在线视频| 欧美高清视频不卡网| 韩国理伦片一区二区三区在线播放 | 国产一区二区三区在线观看免费视频 | 国产高清精品久久久久| 欧美精彩视频一区二区三区| 99免费精品在线观看| 亚洲曰韩产成在线| 日韩精品一区二区三区在线播放| 国产一区在线视频| 亚洲视频免费看| 日韩一区二区电影在线| 国产成人av电影在线播放| 玉足女爽爽91| 日韩欧美在线不卡|