filestate.java

来自「SANCHO」· Java 代码 · 共 32 行

JAVA
32
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?