⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filestate.java

📁 SANCHO
💻 JAVA
字号:
/* * Copyright (C) 2004-2005 Rutger M. Ovidius for use with the sancho project. * See LICENSE.txt for license information. */package sancho.model.mldonkey.utility;import sancho.model.mldonkey.enums.EnumFileState;import sancho.view.utility.SResources;public class FileState {  private EnumFileState state;  private String reason;  public synchronized String getReason() {    return reason != null ? reason : SResources.S_ES;  }  public synchronized EnumFileState getState() {    return state;  }  // guiEncoding#buf_state  public void read(MessageBuffer messageBuffer) {    synchronized (this) {      this.state = EnumFileState.byteToEnum(messageBuffer.getByte());      if (this.state == EnumFileState.ABORTED)        this.reason = messageBuffer.getString();    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -