1c7cc89feSAndrew Rist /************************************************************** 2c7cc89feSAndrew Rist * 3c7cc89feSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4c7cc89feSAndrew Rist * or more contributor license agreements. See the NOTICE file 5c7cc89feSAndrew Rist * distributed with this work for additional information 6c7cc89feSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7c7cc89feSAndrew Rist * to you under the Apache License, Version 2.0 (the 8c7cc89feSAndrew Rist * "License"); you may not use this file except in compliance 9c7cc89feSAndrew Rist * with the License. You may obtain a copy of the License at 10c7cc89feSAndrew Rist * 11c7cc89feSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12c7cc89feSAndrew Rist * 13c7cc89feSAndrew Rist * Unless required by applicable law or agreed to in writing, 14c7cc89feSAndrew Rist * software distributed under the License is distributed on an 15c7cc89feSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16c7cc89feSAndrew Rist * KIND, either express or implied. See the License for the 17c7cc89feSAndrew Rist * specific language governing permissions and limitations 18c7cc89feSAndrew Rist * under the License. 19c7cc89feSAndrew Rist * 20c7cc89feSAndrew Rist *************************************************************/ 21c7cc89feSAndrew Rist 22c7cc89feSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir package complex.memCheck; 25cdf0e10cSrcweir 26cdf0e10cSrcweir import java.io.File; 27cdf0e10cSrcweir import org.openoffice.test.OfficeFileUrl; 28cdf0e10cSrcweir 29cdf0e10cSrcweir final class TestDocument 30cdf0e10cSrcweir { getUrl(String pathName, String fileName)31*5c06146fSDamjan Jovanovic public static String getUrl(String pathName, String fileName) 32cdf0e10cSrcweir { 33*5c06146fSDamjan Jovanovic return OfficeFileUrl.getAbsolute(new File(pathName, fileName)); 34cdf0e10cSrcweir } 35*5c06146fSDamjan Jovanovic getUrl(String pathName)36*5c06146fSDamjan Jovanovic public static String getUrl(String pathName) 37cdf0e10cSrcweir { 38*5c06146fSDamjan Jovanovic return OfficeFileUrl.getAbsolute(new File(pathName)); 39cdf0e10cSrcweir } 40cdf0e10cSrcweir } 41