1. package org.jr.text;
  2. /**
  3. * Copyright: Copyright (c) 2002-2004
  4. * Company: JavaResearch(http://www.javaresearch.org)
  5. * 最后更新日期:2003年3月26日
  6. * @author Cherami
  7. */
  8. /**
  9. * HTML风格的实现类。
  10. * @since 0.5
  11. */
  12. public class HTMLStyle extends DefaultStyle{
  13. /**
  14. * 构造一个空的HTMLStyle。
  15. * 其风格为""。
  16. */
  17. public HTMLStyle() {
  18. super();
  19. }
  20. /**
  21. * 以指定的开始结束风格构造一个HTMLStyle。
  22. * @param begin 风格的开始部分
  23. * @param end 风格的结束部分
  24. * @since 0.5
  25. */
  26. public HTMLStyle(String begin,String end) {
  27. super(begin,end);
  28. if (begin!=null) {
  29. this.begin = begin;
  30. }
  31. else {
  32. this.begin="";
  33. }
  34. if (end!=null) {
  35. this.end = end;
  36. }
  37. else {
  38. this.end="";
  39. }
  40. }
  41. }