Example usage for java.io ObjectInput readUTF

List of usage examples for java.io ObjectInput readUTF

Introduction

In this page you can find the example usage for java.io ObjectInput readUTF.

Prototype

String readUTF() throws IOException;

Source Link

Document

Reads in a string that has been encoded using a modified UTF-8 format.

Usage

From source file:com.sentaroh.android.SMBExplorer.SMBExplorerMain.java

@SuppressWarnings("unchecked")
@Override/*from   ww  w.j av a  2 s  .com*/
public void readExternal(ObjectInput objin) throws IOException, ClassNotFoundException {
    //      Log.v("","rd");
    long sid = objin.readLong();
    if (serialVersionUID != sid) {
        throw new IOException("serialVersionUID was not matched by saved UID");
    }

    paste_list = (ArrayList<FileListItem>) SerializeUtil.readArrayList(objin);
    paste_from_url = SerializeUtil.readUtf(objin);
    paste_to_url = SerializeUtil.readUtf(objin);
    paste_item_list = SerializeUtil.readUtf(objin);

    is_paste_copy = objin.readBoolean();
    is_paste_enabled = objin.readBoolean();
    is_paste_from_local = objin.readBoolean();

    local_dir_hist = (ArrayList<String>) SerializeUtil.readArrayList(objin);
    remote_dir_hist = (ArrayList<String>) SerializeUtil.readArrayList(objin);

    remote_file_list_cache = (ArrayList<FileListCacheItem>) SerializeUtil.readArrayList(objin);
    remote_curr_file_list = (FileListCacheItem) objin.readObject();
    local_file_list_cache = (ArrayList<FileListCacheItem>) SerializeUtil.readArrayList(objin);
    local_curr_file_list = (FileListCacheItem) objin.readObject();
    vsa = new ViewSaveArea();
    vsa.readExternal(objin);
    dialog_msg_cat = objin.readUTF();

    remoteBase = SerializeUtil.readUtf(objin);
    localBase = SerializeUtil.readUtf(objin);
    remoteDir = SerializeUtil.readUtf(objin);
    localDir = SerializeUtil.readUtf(objin);
    currentTabName = SerializeUtil.readUtf(objin);
    smbUser = SerializeUtil.readUtf(objin);
    smbPass = SerializeUtil.readUtf(objin);

    localUpButtonEnabled = objin.readBoolean();
    localTopButtonEnabled = objin.readBoolean();
    remoteUpButtonEnabled = objin.readBoolean();
    remoteTopButtonEnabled = objin.readBoolean();
}