Package org.silverpeas.components.quizz

## Class QuestionHelper

- java.lang.Object
- - org.silverpeas.components.quizz.QuestionHelper

-     public class QuestionHelper
      extends Object

  Author:
    ehugonnet

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `protected static void` | `addImageToAnswer​(org.silverpeas.core.questioncontainer.answer.model.Answer answer, org.silverpeas.core.util.file.FileItem item, QuestionForm form, String componentId, String subdir)` |
    `static List<org.silverpeas.core.questioncontainer.answer.model.Answer>` | `extractAnswer​(List<org.silverpeas.core.util.file.FileItem> items, QuestionForm form, String componentId, String subdir)` |
    `static boolean` | `isCorrectFile​(org.silverpeas.core.util.file.FileItem filePart)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### isCorrectFile

          public static boolean isCorrectFile​(org.silverpeas.core.util.file.FileItem filePart)

    - #### extractAnswer

          public static List<org.silverpeas.core.questioncontainer.answer.model.Answer> extractAnswer​(List<org.silverpeas.core.util.file.FileItem> items,
                                                                                                      QuestionForm form,
                                                                                                      String componentId,
                                                                                                      String subdir)
                                                                                               throws IOException

      Throws:
        `IOException`

    - #### addImageToAnswer

          protected static void addImageToAnswer​(org.silverpeas.core.questioncontainer.answer.model.Answer answer,
                                                 org.silverpeas.core.util.file.FileItem item,
                                                 QuestionForm form,
                                                 String componentId,
                                                 String subdir)
                                          throws IOException

      Throws:
        `IOException`