Class PropSite

java.lang.Object
io.github.enxign.shed.properties.PropSite

public class PropSite extends Object
PropSeed
Since:
2021-02-01
Version:
1.0
 수정일        수정자       수정내용
 ----------   ---------   -------------------------------
 2021-02-01   first       create
 
Author:
enxign
  • Field Details

    • seedProp

      protected InputStream seedProp
      관리 환경설정 읽어오기
    • infoProp

      protected PropInfoDTO infoProp
      관리 환경설정값 저장
  • Constructor Details

    • PropSite

      public PropSite(String path, String name) throws IOException
      PropSeed 생성자
      Parameters:
      path - 파일 경로
      name - 파일 이름
      Throws:
      IOException - 예외처리
  • Method Details

    • getProperties

      public Properties getProperties()
      Properties 객체 반환
      Returns:
      Properties 객체
    • getProperties

      public String getProperties(String key)
      Properties에서 키에 해당하는 값을 반환
      Parameters:
      key - 키
      Returns:
    • setPropertyValue

      public void setPropertyValue(String key, String value)
      Properties에 키와 값을 설정
      Parameters:
      key - 키
      value - 값
    • isProperties

      public boolean isProperties()
      Properties가 null인지 확인
      Returns:
      true if properties is not null, false otherwise
    • saveProperties

      public void saveProperties() throws IOException
      Properties를 파일에 저장
      Throws:
      IOException - 예외처리
    • getProperty

      public PropInfoDTO getProperty()
      개별 사이트 설정 속성 읽어오기
      Returns:
      PropSiteDTO
    • isProperty

      public boolean isProperty()
      개별 사이트 설정 속성이 존재하는지 확인
      Returns:
      true if property exists, false otherwise