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

📄 attachment.java

📁 我想下载一个东西
💻 JAVA
字号:
/*    JSPWiki - a JSP-based WikiWiki clone.    Copyright (C) 2001-2002 Janne Jalkanen (Janne.Jalkanen@iki.fi)    This program is free software; you can redistribute it and/or modify    it under the terms of the GNU Lesser General Public License as published by    the Free Software Foundation; either version 2.1 of the License, or    (at your option) any later version.    This program 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 for more details.    You should have received a copy of the GNU Lesser General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */package com.ecyrd.jspwiki.attachment;import com.ecyrd.jspwiki.WikiPage;/** *  Describes an attachment.  Attachments are actually derivatives of *  a WikiPage, since they do actually have a WikiName as well. * *  @author Erik Bunn *  @author Janne Jalkanen */public class Attachment    extends WikiPage{    private String m_fileName;    private String m_parentName;    private long   m_fileSize;    private int    m_status = CREATED;    public static final int CREATED       = 0;    public static final int UPLOADING     = 1;    public static final int COMPLETE      = 2;    public Attachment( String parentPage, String fileName )    {        super( parentPage+"/"+fileName );        m_parentName = parentPage;        m_fileName   = fileName;        // -1 for unknown size; anything >= 0 is valid.        m_fileSize = -1;    }    public String toString()    {        return "Attachment ["+getName()+";mod="+getLastModified()+               ";status="+m_status+"]";    }    public String getFileName()    {        return( m_fileName );    }    public void setFileName( String name )    {        m_fileName = name;    }    public long getSize()    {        return( m_fileSize );    }    public void setSize( long size )    {        m_fileSize = size;    }    public int getStatus()    {        return m_status;    }    public void setStatus( int status )    {        m_status = status;    }    public String getParentName()    {        return m_parentName;    }}

⌨️ 快捷键说明

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