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

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

?? catalog.java

?? JAVA簡化版虛擬機程序
?? JAVA
字號:
/*
Copyright (c) 1998, 1999 Wabasoft  All rights reserved.

This software is furnished under a license and may be used only in accordance
with the terms of that license. This software and documentation, and its
copyrights are owned by Wabasoft and are protected by copyright law.

THIS SOFTWARE AND REFERENCE MATERIALS ARE PROVIDED "AS IS" WITHOUT WARRANTY
AS TO THEIR PERFORMANCE, MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE,
OR AGAINST INFRINGEMENT. WABASOFT ASSUMES NO RESPONSIBILITY FOR THE USE OR
INABILITY TO USE THIS SOFTWARE. WABASOFT SHALL NOT BE LIABLE FOR INDIRECT,
SPECIAL OR CONSEQUENTIAL DAMAGES RESULTING FROM THE USE OF THIS PRODUCT.

WABASOFT SHALL HAVE NO LIABILITY OR RESPONSIBILITY FOR SOFTWARE ALTERED,
MODIFIED, OR CONVERTED BY YOU OR A THIRD PARTY, DAMAGES RESULTING FROM
ACCIDENT, ABUSE OR MISAPPLICATION, OR FOR PROBLEMS DUE TO THE MALFUNCTION OF
YOUR EQUIPMENT OR SOFTWARE NOT SUPPLIED BY WABASOFT.
*/

package waba.io;


/**
 * Catalog is a collection of records commonly referred to as a database
 * on small devices.
 * <p>
 * Here is an example showing data being read from records in a catalog:
 *
 * <pre>
 * Catalog c = new Catalog("MyCatalog", Catalog.READ_ONLY);
 * if (!c.isOpen())
 *   return;
 * int count = c.getRecordCount();
 * byte b[] = new byte[10];
 * for (int i = 0; i < count; i++)
 *   {   
 *   c.setRecord(i);
 *   c.readBytes(b, 0, 10);
 *   ...
 *   }
 * c.close();
 * </pre>
 */

public class Catalog extends Stream
{
/** Read-only open mode. */
public static final int READ_ONLY  = 1;
/** Write-only open mode. */
public static final int WRITE_ONLY = 2;
/** Read-write open mode. */
public static final int READ_WRITE = 3; // READ | WRITE
/** Create open mode. Used to create a database if one does not exist. */
public static final int CREATE = 4;


/**
 * Opens a catalog with the given name and mode. If mode is CREATE, the 
 * catalog will be created if it does not exist.
 * <p>
 * For PalmOS: A PalmOS creator id and type can be specified by appending
 * a 4 character creator id and 4 character type to the name seperated
 * by periods. For example:
 * <pre>
 * Catalog c = new Catalog("MyCatalog.CRTR.TYPE", Catalog.CREATE);
 * </pre>
 * Will create a PalmOS database with the name "MyCatalog", creator id
 * of "CRTR" and type of "TYPE".
 * <p>
 * If no creator id and type is specified, the creator id will default
 * to the creator id of current waba program and the type will default
 * to "DATA".
 * <p>
 * Under PalmOS, the name of the catalog must be 31 characters or less,
 * not including the creator id and type. Windows CE supports a 32
 * character catalog name but to maintain compatibility with PalmOS,
 * you should use 31 characters maximum for the name of the catalog.
 * @param name catalog name
 * @param mode one of READ_ONLY, WRITE_ONLY, READ_WRITE or CREATE
 */
public Catalog(String name, int mode)
	{
	_nativeCreate(name, mode);
	}

private native void _nativeCreate(String name, int mode);


/**
 * Adds a record to the end of the catalog. If this operation is successful,
 * the position of the new record is returned and the current position is
 * set to the new record. If it is unsuccessful the current position is
 * unset and -1 is returned.
 * @param size the size in bytes of the record to add
 */
public native int addRecord(int size);


/**
 * Resizes a record. This method changes the size (in bytes) of the current record.
 * The contents of the existing record are preserved if the new size is larger
 * than the existing size. If the new size is less than the existing size, the
 * contents of the record are also preserved but truncated to the new size.
 * Returns true if the operation is successful and false otherwise.
 * @param size the new size of the record
 */
public native boolean resizeRecord(int size);


/**
 * Closes the catalog. Returns true if the operation is successful and false
 * otherwise.
 */
public native boolean close();


/**
 * Deletes the catalog. Returns true if the operation is successful and false
 * otherwise.
 */
public native boolean delete();


/**
 * Returns the complete list of existing catalogs. If no catalogs exist, this
 * method returns null.
 */
public static native String []listCatalogs();


/**
 * Deletes the current record and sets the current record position to -1.
 * The record is immediately removed from the catalog and all subsequent
 * records are moved up one position.
 */
public native boolean deleteRecord();


/**
 * Returns the number of records in the catalog or -1 if the catalog is not open.
 */
public native int getRecordCount();


/**
 * Returns the size of the current record in bytes or -1 if there is no
 * current record.
 */
public native int getRecordSize();


/**
 * Returns true if the catalog is open and false otherwise. This can
 * be used to check if opening or creating a catalog was successful.
 */
public native boolean isOpen();


/**
 * Sets the current record position and locks the given record. The value
 * -1 can be passed to unset and unlock the current record. If the operation
 * is succesful, true is returned and the read/write cursor is set to
 * the beginning of the record. Otherwise, false is returned.
 */
public native boolean setRecordPos(int pos);


/**
 * Reads bytes from the current record into a byte array. Returns the
 * number of bytes actually read or -1 if an error prevented the
 * read operation from occurring. After the read is complete, the location of
 * the cursor in the current record (where read and write operations start from)
 * is advanced the number of bytes read.
 * @param buf the byte array to read data into
 * @param start the start position in the array
 * @param count the number of bytes to read
 */
public native int readBytes(byte buf[], int start, int count);


/**
 * Advances the cursor in the current record a number of bytes. The cursor
 * defines where read and write operations start from in the record. Returns
 * the number of bytes actually skipped or -1 if an error occurs.
 * @param count the number of bytes to skip
 */
public native int skipBytes(int count);


/**
 * Writes to the current record. Returns the number of bytes written or -1
 * if an error prevented the write operation from occurring.
 * After the write is complete, the location of the cursor in the current record
 * (where read and write operations start from) is advanced the number of bytes
 * written.
 * @param buf the byte array to write data from
 * @param start the start position in the byte array
 * @param count the number of bytes to write
 */
public native int writeBytes(byte buf[], int start, int count);

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美二区三区91| 欧美美女bb生活片| 国产麻豆一精品一av一免费| 日韩一区二区视频| 91麻豆精品国产91久久久久久| 免费在线视频一区| 久草热8精品视频在线观看| 日本不卡一二三| 中文一区二区在线观看| 国产精品无圣光一区二区| 国产亚洲欧美日韩在线一区| 国产欧美精品一区| 亚洲日本免费电影| 午夜精品一区二区三区免费视频| 久久久久久久性| 中文字幕av一区 二区| 欧美久久婷婷综合色| 欧美一区二区三区喷汁尤物| 精品av久久707| 国产女同性恋一区二区| 国产精品久久久久婷婷 | 在线一区二区三区四区五区| 91老师片黄在线观看| 欧美日本一区二区在线观看| 久久综合久久久久88| 欧美高清在线一区二区| 一区二区三区久久久| 精品一区二区影视| 91官网在线免费观看| 日韩欧美一区中文| 中文字幕欧美一| 国产婷婷色一区二区三区四区| 91精品国产色综合久久不卡电影| 在线免费一区三区| 欧美大片日本大片免费观看| 中文一区二区在线观看| 久久香蕉国产线看观看99| 自拍av一区二区三区| 国产精品美女久久久久aⅴ国产馆| 精品久久久久久最新网址| 欧美日韩国产综合草草| 国产无一区二区| 日韩国产在线观看一区| 国产·精品毛片| 91精品国产综合久久精品麻豆| 91免费在线看| 2021中文字幕一区亚洲| 欧美一区二区三区免费在线看 | 在线观看91av| 亚洲欧洲日韩女同| 国产中文字幕精品| 欧美性一二三区| 欧美群妇大交群中文字幕| 欧美高清性hdvideosex| 亚洲免费观看视频| 成人教育av在线| 久久久99精品久久| 国产精品美女久久久久久久久 | 波多野结衣亚洲| 日韩一区二区免费高清| 午夜精品一区二区三区电影天堂| 日韩国产在线观看| 欧美日韩在线电影| 欧美日韩第一区日日骚| 一区二区三区视频在线看| www.av精品| 国产精品欧美综合在线| 岛国一区二区在线观看| 久久免费看少妇高潮| 激情偷乱视频一区二区三区| 日韩美女视频在线| 久久久久国产一区二区三区四区 | 青草国产精品久久久久久| 国内精品久久久久影院一蜜桃| 波多野结衣中文一区| 日本一区二区免费在线| 国产激情一区二区三区| 日本精品一区二区三区四区的功能| 在线观看日韩av先锋影音电影院| 欧美一区二区福利视频| 香蕉影视欧美成人| 欧美日韩你懂得| 精品国精品自拍自在线| 久久99精品久久只有精品| 久久久精品黄色| 成人av在线网站| 一区二区久久久久| 777午夜精品免费视频| 美女精品自拍一二三四| 久久精品一区蜜桃臀影院| 国产成人综合在线| 中文字幕中文字幕一区二区| 91色乱码一区二区三区| 亚洲一区免费在线观看| 日韩一级欧美一级| 成人激情av网| 午夜亚洲福利老司机| 久久影院电视剧免费观看| 成人免费不卡视频| 婷婷六月综合网| 久久久久9999亚洲精品| 91豆麻精品91久久久久久| 免费成人在线影院| 国产精品狼人久久影院观看方式| 久久99精品久久久久久国产越南 | 综合电影一区二区三区| 欧美日韩一区三区四区| 极品销魂美女一区二区三区| 国产精品国产自产拍在线| 国产一二三精品| 亚洲精品中文字幕在线观看| 欧美一级高清片在线观看| 国产精品亚洲а∨天堂免在线| 日韩片之四级片| 另类中文字幕网| 一区二区三区精品| 国产日产精品一区| 欧美一区二区三级| 色欲综合视频天天天| 国产一区二区三区国产| 亚洲一区二区三区中文字幕在线| 91高清视频在线| 成人午夜电影久久影院| 奇米精品一区二区三区在线观看一 | 亚洲一区二区在线免费观看视频| 91在线视频18| 国内一区二区视频| 日韩激情视频在线观看| 一区二区三区四区亚洲| 国产日韩欧美a| eeuss国产一区二区三区| 精品一区二区三区在线播放| 亚洲v精品v日韩v欧美v专区 | 久久99精品久久久久久国产越南| 精品国产一二三区| 在线观看国产91| 99久久久精品免费观看国产蜜| 亚洲免费观看在线观看| 日本一区二区视频在线观看| 日韩精品中文字幕一区| 欧美色电影在线| 在线观看国产一区二区| 在线视频一区二区三区| 97成人超碰视| 91丨国产丨九色丨pron| 成人动漫在线一区| aaa欧美日韩| av在线一区二区| 一本到不卡免费一区二区| av中文字幕亚洲| 94色蜜桃网一区二区三区| 国产成人精品亚洲日本在线桃色| 亚洲人成在线播放网站岛国| 国产精品毛片久久久久久久| 中文字幕av资源一区| 欧美做爰猛烈大尺度电影无法无天| 日韩 欧美一区二区三区| 亚洲福利视频一区二区| 亚洲chinese男男1069| 久久久91精品国产一区二区三区| 色悠悠久久综合| 国产一区不卡在线| 国产+成+人+亚洲欧洲自线| 不卡免费追剧大全电视剧网站| 日韩av在线播放中文字幕| 蜜桃视频一区二区三区| 激情综合网最新| 成人自拍视频在线| 日本韩国欧美国产| 日韩视频一区二区三区在线播放| 成人激情免费电影网址| 91玉足脚交白嫩脚丫在线播放| 激情综合色综合久久| 大白屁股一区二区视频| 99riav一区二区三区| 欧美久久久一区| 亚洲精品一区二区三区在线观看| 欧美日韩一区三区| 精品动漫一区二区三区在线观看| 欧洲一区在线电影| av午夜一区麻豆| 欧美老肥妇做.爰bbww| 色88888久久久久久影院野外| 国产成人日日夜夜| 在线观看成人小视频| 精品国产乱码久久久久久久久| 51精品国自产在线| 国产亚洲一区字幕| 亚洲主播在线观看| 国产精品一区二区无线| 欧洲生活片亚洲生活在线观看| 一本一本大道香蕉久在线精品| 不卡一卡二卡三乱码免费网站| 国产a久久麻豆| 欧美日本不卡视频| 亚洲欧洲成人av每日更新| 久久国产剧场电影| 在线观看不卡一区| 国产精品福利av| 国产乱码精品一区二区三区av|