Class TestSheetFileAttribute

All Implemented Interfaces:
Viewable, Cacheable, Observed, Retrievable, Serializable, ColumnAccessByName, ObjectModel, Persistent

public class TestSheetFileAttribute extends FileAttribute
시험지 원문 파일 속성이다. 지금 서비스 되고 있는 System instance 가 문서를 처리를 담당하는 instance 가 아니면 등록된 문서처리 System 으로 파일을 전송한다.
Version:
$Revision: 1.110 $ $Date: 2008/12/25 04:03:44 $
Author:
Youngho Cho
See Also:
  • Constructor Details

    • TestSheetFileAttribute

      public TestSheetFileAttribute()
      새로운 TestSheetFileAttribute 인스턴스를 생성한다.
  • Method Details

    • saveFile

      public String saveFile() throws Exception
      파일 System 에 저장한다. OS 를
      Overrides:
      saveFile in class FileAttribute
      Returns:
      saved location
      Throws:
      Exception - DOCUMENT ME!
    • getImageData

      public byte[] getImageData(String name) throws Exception
      주어진 이름의 Image Data 를 구한다.
      Parameters:
      name - image 의 상대 경로
      Returns:
      byte[] image data
      Throws:
      Exception - image 를 읽는 중 오류가 발생한 경우
    • existsError

      public boolean existsError() throws TorqueException
      문서 처리중 hwp2html 이 error 를 발생하였는지
      Returns:
      exists or not
      Throws:
      TorqueException - 값 조회 중 오류가 발생한 경우
    • canFixIt

      public boolean canFixIt()
      자동 문서처리가 실패하였을경우 수동으로 문서처리가 완료 되었는지 확인
      Returns:
      수동 문서처리가 완료되었으면 true
    • getResourcePath

      public File getResourcePath(String name) throws Exception
      문서 파일과 같은 폴더에 있는 resource 의 경로를 구한다. 이름의 ',' 는 '/' 로 변환한다.
      Parameters:
      name - resource 의 상대 경로
      Returns:
      File
      Throws:
      Exception - 경로를 구하는 중 오류가 발생한 경우
    • getResourcePath

      public File getResourcePath(String name, boolean replace) throws Exception
      문서 파일과 같은 폴더에 있는 resource 의 경로를 구한다.
      Parameters:
      name - resource 의 상대 경로
      replace - hwp, doc 파일이 아닌 경우 이름의 ',' 를 '/' 로 변환할지 여부
      Returns:
      File
      Throws:
      Exception - 경로를 구하는 중 오류가 발생한 경우
    • saveParsableDocuments

      public void saveParsableDocuments(Map pages) throws Exception
      문서 처리된 것을 html 로 File System 에 저장한다. Format 은 pages/page.html 이다.
      Parameters:
      pages - { pageid, html Strings }
      Throws:
      Exception - 파일 저장 중 오류가 발생한 경우