imagesource.java
来自「j2me 上面flash播放器。非常值得研究。就是版本只到2.0」· Java 代码 · 共 57 行
JAVA
57 行
package org.jflashme;/* This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License, version 2, as * published by the Free Software Foundation. * * This library 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 * Lesser General Public License (the accompanying file named LGPL.txt) * for more details. *//*class ImageSource extends URLImageSource{ ByteArrayInputStream is; byte data[]; ImageSource(FlashPane flash) throws MalformedURLException { super(flash.getCodeBase()); } void SetData(byte abyte0[]) { data = abyte0; } void CreateInputStream() { is = new ByteArrayInputStream(data); } void DestroyInputStream() { try { if(is != null) { is.close(); is = null; return; } } catch(IOException _ex) { } } protected ImageDecoder getDecoder() { return new JPEGImageDecoder(this, is); }}*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?