📄 encodedurlhelper.java~
字号:
/*********************************************************************
*
* Copyright (C) 2005 Andrew Khan
*
* This library 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 library 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 library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
***************************************************************************/
package jxl.biff;
import common.Assert;
import java.io.File;
/**
* Gets a Microsoft encoded URL from the given string
*/
public class EncodedURLHelper
{
// The control codes
private static int msDosDriveLetter = 0x01;
private static int sameDrive = 0x02;
private static int endOfSubdirectory = 0x03;
private static int parentDirectory = 0x04;
private static int unencodedUrl = 0x05;
public static byte[] getEncodedURL(String s)
{
if (s.startsWith("http:"))
{
return getURL(s);
}
else
{
return getFile(s);
}
}
private static byte[] getFile(String s)
{
File f = new File(s);
}
private static byte[] getURL(String s)
{
Assert.verify(false);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -